linux/drivers/net/ethernet/hisilicon/hns3/hns3pf
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
..
hclge_cmd.c net: hns3: add support for forwarding packet to queues of specified TC when flow director rule hit 2020-12-09 20:33:19 -08:00
hclge_cmd.h net: hns3: adjust rss tc mode configure command 2020-12-09 20:33:20 -08:00
hclge_dcb.c net: hns3: add support for max 512 rss size 2020-12-09 20:33:20 -08:00
hclge_dcb.h
hclge_debugfs.c net: hns3: refine the struct hane3_tc_info 2020-12-09 20:33:19 -08:00
hclge_debugfs.h net: hns3: remove a misused pragma packed 2020-12-06 23:38:33 -08:00
hclge_err.c net: hns3: delete redundant PCI revision judgement 2020-09-27 13:25:22 -07:00
hclge_err.h net: hns3: remove a redundant register macro definition 2020-05-10 19:43:22 -07:00
hclge_main.c net: hns3: fix expression that is currently always true 2020-12-14 19:42:49 -08:00
hclge_main.h net: hns3: add support for max 512 rss size 2020-12-09 20:33:20 -08:00
hclge_mbx.c net: hns3: refine the struct hane3_tc_info 2020-12-09 20:33:19 -08:00
hclge_mdio.c net: hns3: fix a print format issue in hclge_mac_mdio_config() 2020-05-30 17:41:22 -07:00
hclge_mdio.h
hclge_tm.c net: hns3: add support for max 512 rss size 2020-12-09 20:33:20 -08:00
hclge_tm.h net: hns3: add support to utilize the firmware calculated shaping parameters 2020-11-21 14:33:46 -08:00
hclge_trace.h net: hns3: add trace event support for PF/VF mailbox 2020-04-20 12:49:18 -07:00
Makefile net: hns3: add trace event support for PF/VF mailbox 2020-04-20 12:49:18 -07:00