net: hns3: fix error mask definition of flow director
authorJian Shen <shenjian15@huawei.com>
Sat, 27 Feb 2021 07:24:51 +0000 (15:24 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Mar 2021 16:06:20 +0000 (17:06 +0100)
commit13e312dca2f2ebefea23d5385ffa54d7d1b03ecc
treec4d6ffed8775a01cec04b74056afe5b19fe352f9
parent3370a84d781ca5227682bd6e747aaefb6dcc8e21
net: hns3: fix error mask definition of flow director

[ Upstream commit ae85ddda0f1b341b2d25f5a5e0eff1d42b6ef3df ]

Currently, some bit filed definitions of flow director TCAM
configuration command are incorrect. Since the wrong MSB is
always 0, and these fields are assgined in order, so it still works.

Fix it by redefine them.

Fixes: 117328680288 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h