diff options
author | Xue Chaojing <xuechaojing@huawei.com> | 2018-11-20 08:47:32 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-20 21:38:08 +0300 |
commit | 4a61abb100c8a647959147034f60e9fce17ce9af (patch) | |
tree | 22cb4e021ce58dc605f0fef411f961a69cf55bef /drivers/net/ethernet/huawei/hinic/hinic_hw_dev.h | |
parent | ebda9b46cebc9c1245fcfe96c76525717ef984cc (diff) | |
download | linux-4a61abb100c8a647959147034f60e9fce17ce9af.tar.xz |
net-next/hinic:add rx checksum offload for HiNIC
In order to improve performance, this patch adds rx checksum offload
for the HiNIC driver. Performance test(Iperf) shows more than 80%
improvement in TCP streams.
Signed-off-by: Xue Chaojing <xuechaojing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/huawei/hinic/hinic_hw_dev.h')
-rw-r--r-- | drivers/net/ethernet/huawei/hinic/hinic_hw_dev.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/huawei/hinic/hinic_hw_dev.h b/drivers/net/ethernet/huawei/hinic/hinic_hw_dev.h index 097b5502603f..d1a7d2522d82 100644 --- a/drivers/net/ethernet/huawei/hinic/hinic_hw_dev.h +++ b/drivers/net/ethernet/huawei/hinic/hinic_hw_dev.h @@ -50,6 +50,8 @@ enum hinic_port_cmd { HINIC_PORT_CMD_GET_LINK_STATE = 24, + HINIC_PORT_CMD_SET_RX_CSUM = 26, + HINIC_PORT_CMD_SET_PORT_STATE = 41, HINIC_PORT_CMD_FWCTXT_INIT = 69, |