]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: add getting capabilities of gro offload and fd from firmware
authorGuangbin Huang <huangguangbin2@huawei.com>
Tue, 30 Aug 2022 11:11:14 +0000 (19:11 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Aug 2022 13:10:49 +0000 (14:10 +0100)
commitbab99a071bb76063fb3ee579beadc434878ce93b
tree9d472efd42ececec6e419af64f2795172eb4154e
parentf3d4cc8aad90901b77763d3cd5ec46cacca74cf3
net: hns3: add getting capabilities of gro offload and fd from firmware

As some new devices may not support GRO offload and flow table director,
to support these devices, driver needs to querying capabilities of GRO
offload and flow table director from firmware. Whether the driver
supports these two features depends on capabilities.

For old device of version HNAE3_DEVICE_VERSION_V2, driver sets their
capabilities of these two features to fixed value.

Setting default features of netdev and debugfs also need to identify
whether support these two features.

Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hnae3.h
drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_cmd.c
drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_cmd.h
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c