OSDN Git Service

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)
commit507e46ae26ea526118f03ae4ae58e5d48acb79d5
tree9d472efd42ececec6e419af64f2795172eb4154e
parent39a7d7261ac0acfc4b4554958dfaa829a46540a2
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