]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: fix bug when calculating the TCAM table info
authorJian Shen <shenjian15@huawei.com>
Sat, 27 Feb 2021 07:24:53 +0000 (15:24 +0800)
committerJakub Kicinski <kuba@kernel.org>
Sun, 28 Feb 2021 20:04:00 +0000 (12:04 -0800)
commit09f2e94846a5be8f5b7b76b7b739e0579e179fee
tree0c088415b783ab0da5d9bbfcafd53aae22e1c331
parent5335c1f4dcc17179601e666c04baef59e7aaea45
net: hns3: fix bug when calculating the TCAM table info

The function hclge_fd_convert_tuple() is used to convert tuples
and tuples mask to TCAM x and y.  But it misuses the source mac
as source mac mask when convert INNER_SRC_MAC, which may cause
the flow director rule works unexpectedly. So fix it.

Fixes: 5202709818f8 ("net: hns3: Add input key and action config support for flow director")
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c