• Vlad Yasevich's avatar
    bna: Support TSO and partial checksum with non-accelerated vlans. · 1c53730a
    Vlad Yasevich authored
    This device claims TSO and checksum support for vlans.  It also
    allows a user to control vlan acceleration offloading.  As such,
    it is possible to turn off vlan acceleration and configure a vlan
    which will continue to support TSO.
    
    In such situation the packet passed down the the device will contain
    a vlan header and skb->protocol will be set to ETH_P_8021Q.
    The device assumes that skb->protocol contains network protocol
    value and uses that value to set up TSO information.  This results
    in corrupted frames sent on the wire.
    
    This patch extract the protocol value correctly and corrects TSO
    and checksums for non-accelerated traffic.
    
    CC: Rasesh Mody <rmody@brocade.com>
    Signed-off-by: default avatarVladislav Yasevich <vyasevic@redhat.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    1c53730a
bnad.c 93.3 KB