]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
qeth: add layer 2 RX/TX checksum offloading
authorThomas Richter <tmricht@linux.vnet.ibm.com>
Fri, 18 Sep 2015 14:06:51 +0000 (16:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Sep 2015 23:03:04 +0000 (16:03 -0700)
commit4d7def2a12386dbf56443016114c187df50e3442
tree58e124eec3cf35aa8928b218bf08e1666ea1ca18
parent239ff408ddd8fa7a19c53ed247daec855ff11ea2
qeth: add layer 2 RX/TX checksum offloading

Checksum offloading for send and receive is already
supported for layer 3 (IP layer). This patch
adds support for RX and TX hardware checksum offloading
for layer 2 (MAC layer). The hardware calculates the checksum
for IP UDP and TCP packets.

This patch moves the hardware checksum offloading setup
to the set of common functions in qeth_core_main.c.
Layer 2 and layer 3 now simply call the same common functions.

Also note that TX checksum offloading is always enabled.
The device driver relies on the TCP/IP stack to make use of
this feature.

Signed-off-by: Thomas Richter <tmricht@linux.vnet.ibm.com>
Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com>
Reviewed-by: Eugene Crosser <Eugene.Crosser@ru.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/qeth_core.h
drivers/s390/net/qeth_core_main.c
drivers/s390/net/qeth_l2_main.c
drivers/s390/net/qeth_l3_main.c