diff options
author | Yunsheng Lin <linyunsheng@huawei.com> | 2019-06-28 13:50:17 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-28 18:39:49 +0200 |
commit | 289f81258e03067d032f9c157c91cd1fad7b31c5 (patch) | |
tree | b9fed843b83a67f2b10573b759f6bc3a20ad446d /drivers/net/ethernet/hisilicon/hns3/hns3_enet.h | |
parent | net: hns3: remove unused linkmode definition (diff) | |
download | linux-289f81258e03067d032f9c157c91cd1fad7b31c5.tar.xz linux-289f81258e03067d032f9c157c91cd1fad7b31c5.zip |
net: hns3: remove RXD_VLD check in hns3_handle_bdinfo
The HNS3_RXD_VLD_B bit has already been checked in hns3_add_frag
or hns3_handle_rx_bd before calling hns3_handle_bdinfo, so when
hns3_handle_bdinfo is called, the HNS3_RXD_VLD_B bit is always
set, which makes the checking in hns3_handle_bdinfo unnecessary.
This patch removes the RXD_VLD_B checking in hns3_handle_bdinfo.
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hns3_enet.h')
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns3/hns3_enet.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h index dd0064079aed..a2b73d6aa2f3 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h @@ -384,7 +384,6 @@ struct ring_stats { u64 rx_err_cnt; u64 reuse_pg_cnt; u64 err_pkt_len; - u64 non_vld_descs; u64 err_bd_num; u64 l2_err; u64 l3l4_csum_err; |