From: Lennert Buytenhek Date: Thu, 24 Jul 2008 04:22:59 +0000 (+0200) Subject: mv643xx_eth: enable hardware TX checksumming with vlan tags X-Git-Tag: v2.6.27-rc2~102^2~21^2~8^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e32b66175072d75bde1ddca4227a6723ca17e0af;p=pandora-kernel.git mv643xx_eth: enable hardware TX checksumming with vlan tags Although mv643xx_eth has no hardware support for inserting a vlan tag by twiddling some bits in the TX descriptor, it does support hardware TX checksumming on packets where the IP header starts {a limited set of values other than 14} bytes into the packet. This patch sets mv643xx_eth's ->vlan_features to NETIF_F_SG | NETIF_F_IP_CSUM, which prevents the stack from checksumming vlan'ed packets in software, and if vlan tags are present on a transmitted packet, notifies the hardware of this fact by toggling the right bits in the TX descriptor. Signed-off-by: Lennert Buytenhek --- Reading git-diff-tree failed