linux/drivers/net/ethernet/hisilicon/hns3
Colin Ian King efd5a15845 net: hns3: fix expression that is currently always true
The ||  condition in hdev->fd_active_type != HCLGE_FD_ARFS_ACTIVE ||
hdev->fd_active_type != HCLGE_FD_RULE_NONE will always be true because
hdev->fd_active_type cannot be equal to two different values at the same
time. The expression is always true which is not correct. Fix this by
replacing || with && to correct the logic in the expression.

Addresses-Coverity: ("Constant expression result")
Fixes: 0205ec041e ("net: hns3: add support for hw tc offload of tc flower")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Huazhong Tan <tanhuazhong@huawei.com>
Link: https://lore.kernel.org/r/20201215000033.85383-1-colin.king@canonical.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2020-12-14 19:42:49 -08:00
..
hns3pf net: hns3: fix expression that is currently always true 2020-12-14 19:42:49 -08:00
hns3vf net: hns3: refine the struct hane3_tc_info 2020-12-09 20:33:19 -08:00
hclge_mbx.h net: hns3: add priv flags support to switch limit promisc mode 2020-12-08 11:58:52 -08:00
hnae3.c net: hns3: add or modify some comments 2019-10-31 12:03:23 -07:00
hnae3.h net: hns3: add support for hw tc offload of tc flower 2020-12-09 20:33:19 -08:00
hns3_dcbnl.c net: hns3: fix some coding style issues 2019-06-09 13:20:59 -07:00
hns3_debugfs.c net: hns3: refine the struct hane3_tc_info 2020-12-09 20:33:19 -08:00
hns3_enet.c net: hns3: add support for hw tc offload of tc flower 2020-12-09 20:33:19 -08:00
hns3_enet.h net: hns3: add udp tunnel checksum segmentation support 2020-12-01 15:16:31 -08:00
hns3_ethtool.c net: hns3: add priv flags support to switch limit promisc mode 2020-12-08 11:58:52 -08:00
hns3_trace.h net: hns3: rename trace event hns3_over_8bd 2020-09-29 13:14:24 -07:00
Makefile net: hns3: add trace event support for HNS3 driver 2020-01-06 13:26:25 -08:00