]> git.baikalelectronics.ru Git - kernel.git/commit
bna: Support TSO and partial checksum with non-accelerated vlans.
authorVlad Yasevich <vyasevich@gmail.com>
Mon, 25 Aug 2014 14:34:50 +0000 (10:34 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Aug 2014 00:27:09 +0000 (17:27 -0700)
commit6340b20cd99ac7fccb3240434ab21356168adabe
tree63b0bcb0a08e91cf19fdcbf710a261b1c7fcc5bc
parent931e2298597d8b9190d61ea2c17710eacb58de72
bna: Support TSO and partial checksum with non-accelerated vlans.

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: Vladislav Yasevich <vyasevic@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/brocade/bna/bnad.c