OSDN Git Service

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)
commit33acd755f406358c10b39c444492c8cc8a56411f
tree7b7958d9123676ac70d4305568fb8409bd11d93a
parentf3694707adb21c54c9ab3467029a0e294e0fd4fb
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