]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: add hns3_gro_complete for HW GRO process
authorYunsheng Lin <linyunsheng@huawei.com>
Sun, 14 Apr 2019 01:47:40 +0000 (09:47 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 14 Apr 2019 20:47:35 +0000 (13:47 -0700)
commit5777198e2548d55be96d414c3b66368caebcd79f
treec39d2e5bc3aa8d37f5f3db2407cb12f997f2965e
parent45dffe014f02b8eda98fbc7d89999b055e6f9c0d
net: hns3: add hns3_gro_complete for HW GRO process

When a GRO packet is received by driver, the cwr field in the
struct tcphdr needs to be checked to decide whether to set the
SKB_GSO_TCP_ECN for skb_shinfo(skb)->gso_type.

So this patch adds hns3_gro_complete to do that, and adds the
hns3_handle_bdinfo to handle the hns3_gro_complete and
hns3_rx_checksum.

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c