]> git.baikalelectronics.ru Git - kernel.git/commit
wil6210: Enable TCP/UDP checksum HW offload
authorKirshenbaum Erez <erezk@wilocity.com>
Sun, 21 Jul 2013 08:34:37 +0000 (11:34 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 22 Jul 2013 20:54:44 +0000 (16:54 -0400)
commitdac87a345163b298b3890e9042ce3254cf9f3e37
tree3aedfad7c9b9bdb43ce79a7d46eca7992d0961b2
parent3a59bbcc5ffd2f6e5e14678ac9c43d653eba02f9
wil6210: Enable TCP/UDP checksum HW offload

Add support for TCP and UDP HW checksum offloading.
RX chain is allways configured for offload mode.
In case of checksum error in RX path the DMA L4 error bit(5)
will be set to 1 and driver will drop the packet.
TX checksum offloading is configrable (ethtool -K).
TX descriptors are configured for checksum offload according
to the SKB protocol type (TCP/UDP, IPV4/6), Upon mismatch drop
the TX packet (checksum required but not TCP/UDP IPV4/6 type).

Signed-off-by: Kirshenbaum Erez <erezk@wilocity.com>
Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/wil6210/netdev.c
drivers/net/wireless/ath/wil6210/txrx.c
drivers/net/wireless/ath/wil6210/txrx.h
drivers/net/wireless/ath/wil6210/wmi.c