net: hns3: create new rss common structure hclge_comm_rss_cfg
authorJie Wang <wangjie125@huawei.com>
Wed, 5 Jan 2022 14:20:01 +0000 (22:20 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Jan 2022 14:36:36 +0000 (14:36 +0000)
commit9667b814387c1d7436b0c171d64d7a02d2a21a76
tree49e5a6d2ef71bf8099174dacf0cc03ee07fb2821
parentc5bcdd8228d80432471d646646a1203dce5b449f
net: hns3: create new rss common structure hclge_comm_rss_cfg

Currently PF stores its rss parameters in vport structure. VF stores rss
configurations in hclgevf_rss_cfg structure. Actually hns3 rss parameters
are same beween PF and VF. The two set of rss parameters are redundent and
may add extra bugfix work.

So this patch creates new common rss parameter struct(hclge_comm_rss_cfg)
to unify PF and VF rss configurations.

These new structures will be used to unify rss configurations in PF and VF
rss APIs in next patches.

Signed-off-by: Jie Wang <wangjie125@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_rss.h [new file with mode: 0644]