]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: create new set of common rss get APIs for PF and VF rss module
authorJie Wang <wangjie125@huawei.com>
Wed, 5 Jan 2022 14:20:03 +0000 (22:20 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Jan 2022 14:36:36 +0000 (14:36 +0000)
commit510eacb6941592965e9d713a6634d3feb47407e7
tree3e59f961f3bdfba40ebac557f2d04338bead053b
parent7ecdac094c5b32643dc5e86a3a5902599f2ccca9
net: hns3: create new set of common rss get APIs for PF and VF rss module

The PF and VF rss get APIs are almost the same espect the suffixes of API
names. These same impementions bring double development and bugfix work.

So this patch creates new common rss get APIs for PF and VF rss module.
Subfunctions called by rss query process are also created(e.g. rss tuple
conversion APIs).

These new common rss get APIs will be used to replace PF and VF old 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/Makefile
drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_rss.c [new file with mode: 0644]
drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_rss.h