]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: minor refactor for hns3_rx_checksum
authorYunsheng Lin <linyunsheng@huawei.com>
Sun, 14 Apr 2019 01:47:39 +0000 (09:47 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 14 Apr 2019 20:47:35 +0000 (13:47 -0700)
commit390806dedd93563173e2f3cdc84a5bfe2088eafb
tree724fa7897ef2dc0f4f62f2d2b598c1ba291ca8c9
parent24e686bbf38dc94fe758539f944b7d95478b577f
net: hns3: minor refactor for hns3_rx_checksum

Change the parameters of hns3_rx_checksum to be more specific to
what is used internally, rather than passing in a pointer to the
whole hns3_desc. Reduces duplicate code and bring this function
inline with the approach used in hns3_set_gro_param.

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