]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
net: hns3: Fix a logical vs bitwise typo
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 6 Mar 2019 08:12:34 +0000 (11:12 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Mar 2019 18:22:16 +0000 (10:22 -0800)
There were a couple logical ORs accidentally mixed in with the bitwise
ORs.

Fixes: e8149933b1fa ("net: hns3: remove hnae3_get_bit in data path")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c

index 3cb43b1f1c2e69d590c4ad9361b1423fc7a7aefc..1e4efc47c7a50f296d670c8191b960ebf5705eb8 100644 (file)
@@ -2321,8 +2321,8 @@ static void hns3_rx_checksum(struct hns3_enet_ring *ring, struct sk_buff *skb,
        if (!(bd_base_info & BIT(HNS3_RXD_L3L4P_B)))
                return;
 
-       if (unlikely(l234info & (BIT(HNS3_RXD_L3E_B) | BIT(HNS3_RXD_L4E_B) ||
-                                BIT(HNS3_RXD_OL3E_B) ||
+       if (unlikely(l234info & (BIT(HNS3_RXD_L3E_B) | BIT(HNS3_RXD_L4E_B) |
+                                BIT(HNS3_RXD_OL3E_B) |
                                 BIT(HNS3_RXD_OL4E_B)))) {
                u64_stats_update_begin(&ring->syncp);
                ring->stats.l3l4_csum_err++;