Commit 417e0f6b authored by Jie Wang's avatar Jie Wang Committed by Jiantao Xiao
Browse files

net: hns3: refactor hclge_update_desc_vfid for extension

driver inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7B8SA


CVE: NA

----------------------------------------------------------------------

Now, hclge_update_desc_vfid is used to set vf bitmap for batch operations.
But it used fixed description index, so it is hard to extend for more
scenario.

So this patch refactor description index in the function for reuse.

Fixes: a90bb9a5 ("net: hns3: Cleanup for endian issue in hns3 driver")
Signed-off-by: default avatarJie Wang <wangjie125@huawei.com>
parent b62afba4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment