• Lennert Buytenhek's avatar
    mv643xx_eth: enable hardware TX checksumming with vlan tags · e32b6617
    Lennert Buytenhek authored
    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: default avatarLennert Buytenhek <buytenh@marvell.com>
    e32b6617
mv643xx_eth.c 64.5 KB