]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: refactor out hclge_add_fd_entry()
authorJian Shen <shenjian15@huawei.com>
Mon, 22 Mar 2021 03:51:56 +0000 (11:51 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Mar 2021 20:04:18 +0000 (13:04 -0700)
commit5f2b1238b33c38478ddc55536b65277b30f5d456
tree140024528b4fa3b7d9284296ecf530fbeb153970
parent405a129f59384c474343d6261a2e0a75650d29a8
net: hns3: refactor out hclge_add_fd_entry()

The process of function hclge_add_fd_entry() is complex and
prolix. To make it more readable, extract the process of
fs->ring_cookie to a single function.

Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c