diff options
author | 2021-02-05 16:32:44 +0800 | |
---|---|---|
committer | 2021-02-06 14:36:05 -0800 | |
commit | 1cef42c8474f22d6a8509a19c0b578e5f60138d9 (patch) | |
tree | cd874fd9066394d8d9c8fcbd4afb1c06f4be3a1c /drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | |
parent | Merge branch 'mptcp-misc-updates-for-tests-lock-annotation' (diff) | |
download | wireguard-linux-1cef42c8474f22d6a8509a19c0b578e5f60138d9.tar.xz wireguard-linux-1cef42c8474f22d6a8509a19c0b578e5f60138d9.zip |
net: hns3: add api capability bits for firmware
To improve the compatibility of firmware for driver, help firmware
to deal with different api commands, add api capability bits when
initialize the command queue.
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h')
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h index f861bdbe46c2..9ceb05907908 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h @@ -386,11 +386,15 @@ enum HCLGE_CAP_BITS { HCLGE_CAP_UDP_TUNNEL_CSUM_B, }; +enum HCLGE_API_CAP_BITS { + HCLGE_API_CAP_FLEX_RSS_TBL_B, +}; + #define HCLGE_QUERY_CAP_LENGTH 3 struct hclge_query_version_cmd { __le32 firmware; __le32 hardware; - __le32 rsv; + __le32 api_caps; __le32 caps[HCLGE_QUERY_CAP_LENGTH]; /* capabilities of device */ }; |