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)
commitd474d88f882610850abbf0ec6cf81ff90014c8ed
treec39d2e5bc3aa8d37f5f3db2407cb12f997f2965e
parenta4d2cdcbb878d4d5828cd4124104c330d2817211
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