]> git.baikalelectronics.ru Git - kernel.git/commit
hinic: add vxlan segmentation and cs offload support
authorLuo bin <luobin9@huawei.com>
Mon, 14 Sep 2020 13:48:23 +0000 (21:48 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Sep 2020 20:59:15 +0000 (13:59 -0700)
commit4c3f51eedccac6953a465e667566b793c0ba5d99
tree7b7958d9123676ac70d4305568fb8409bd11d93a
parented7fe43d2069f8510fef4ac847de62c832ce1757
hinic: add vxlan segmentation and cs offload support

Add NETIF_F_GSO_UDP_TUNNEL and NETIF_F_GSO_UDP_TUNNEL_CSUM features
to support vxlan segmentation and checksum offload. Ipip and ipv6
tunnel packets are regarded as non-tunnel pkt for hw and as for other
type of tunnel pkts, checksum offload is disabled.

Signed-off-by: Luo bin <luobin9@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/huawei/hinic/hinic_main.c
drivers/net/ethernet/huawei/hinic/hinic_tx.c