Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1307imm; Fri, 21 Sep 2018 08:43:56 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYs+D5an+MQWovBRdtdmuCoCuKohW01+dU/oJrSJAThtEPorvJv2ziQc407kvfLLFxS6/6b X-Received: by 2002:a62:c008:: with SMTP id x8-v6mr47033286pff.149.1537544636068; Fri, 21 Sep 2018 08:43:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537544636; cv=none; d=google.com; s=arc-20160816; b=lqDA79rQuSPEa8uPwMi1M/NesBZ3SrkCYTbKq7mB3OA4ZQo/Ku9E4VVFKCdVJPbBeJ amyjFV4yaB3rtTmtOgRhG309W+Zz5i98MM7tUEjBxcG6fncgIkfFwbcQ95ATIpfT2PH9 UYHedHqaLhMIeMEWNKHAFvcPKawFEn2YV+RjhlPryd3aNRKjVH2ztHeN40GFLgIXvl5T PFbcNJq45mBXCOUjk+SfefHFRzP28higaAddNVg4/ljrdHjF84dcMMKk6paIs6NtZQNm FiaEc91qoI/mLlrq/DidkThg9AK6kzT3tbRIKsp3nEFiBJXx6pr9hld1y1NntjWlXOVa jLlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=dXFdJnwUWC7XFcBwMgz/P7//BWr6h13YxYPN9VhPu8c=; b=DuHyHC9dVEXQKJAWbFYRQL6pj3ZoRo49E0Bqr2xRye3feX1VAOZXn7GnZN4eiNixCv 058AMAnGdec2dZ7U/b32ux9wY89KPDuVIxjHSIENWpsE9Iw30emuOc01EJG+kRDNrcrI kL4bfbSpbrkfjbT1x30pa6O4PXI6xK34TwZl2egzpHaWL8Ww42jLviL46fyH3Kr20BdS EWcXz9Gb3OVSEeGdfZH71GeLsCDzPklU308l2CpwQtTuCcFM2vAaN6L7hAX35d63RUUD Uzumm7iL5k6WX1DrDbMla4lKy3f7kquCbUYY1B53Ua/4+lDppiUZgCEhpwW3Nt9nVCG0 PFZg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d68-v6si31296389pfj.311.2018.09.21.08.43.37; Fri, 21 Sep 2018 08:43:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390751AbeIUVcn (ORCPT + 99 others); Fri, 21 Sep 2018 17:32:43 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:47207 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2390678AbeIUVcm (ORCPT ); Fri, 21 Sep 2018 17:32:42 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 63CF7934E985E; Fri, 21 Sep 2018 23:43:13 +0800 (CST) Received: from S00293818-DELL1.china.huawei.com (10.202.226.54) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.399.0; Fri, 21 Sep 2018 23:43:06 +0800 From: Salil Mehta To: CC: , , , , , , , Jian Shen Subject: [PATCH net-next 09/12] net: hns3: Remove print messages for error packet Date: Fri, 21 Sep 2018 16:41:45 +0100 Message-ID: <20180921154148.26756-10-salil.mehta@huawei.com> X-Mailer: git-send-email 2.8.3 In-Reply-To: <20180921154148.26756-1-salil.mehta@huawei.com> References: <20180921154148.26756-1-salil.mehta@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.202.226.54] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jian Shen There are already multiple types packets statistics for error packets, it's unnecessary to print them, which may affect the rx performance if print too many. Signed-off-by: Jian Shen Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c index 8b63707..5a4773a 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c @@ -2149,7 +2149,6 @@ static void hns3_rx_checksum(struct hns3_enet_ring *ring, struct sk_buff *skb, hnae3_get_bit(l234info, HNS3_RXD_L4E_B) || hnae3_get_bit(l234info, HNS3_RXD_OL3E_B) || hnae3_get_bit(l234info, HNS3_RXD_OL4E_B))) { - netdev_err(netdev, "L3/L4 error pkt\n"); u64_stats_update_begin(&ring->syncp); ring->stats.l3l4_csum_err++; u64_stats_update_end(&ring->syncp); @@ -2328,8 +2327,6 @@ static int hns3_handle_rx_bd(struct hns3_enet_ring *ring, } if (unlikely(!hnae3_get_bit(bd_base_info, HNS3_RXD_VLD_B))) { - netdev_err(netdev, "no valid bd,%016llx,%016llx\n", - ((u64 *)desc)[0], ((u64 *)desc)[1]); u64_stats_update_begin(&ring->syncp); ring->stats.non_vld_descs++; u64_stats_update_end(&ring->syncp); @@ -2340,7 +2337,6 @@ static int hns3_handle_rx_bd(struct hns3_enet_ring *ring, if (unlikely((!desc->rx.pkt_len) || hnae3_get_bit(l234info, HNS3_RXD_TRUNCAT_B))) { - netdev_err(netdev, "truncated pkt\n"); u64_stats_update_begin(&ring->syncp); ring->stats.err_pkt_len++; u64_stats_update_end(&ring->syncp); @@ -2350,7 +2346,6 @@ static int hns3_handle_rx_bd(struct hns3_enet_ring *ring, } if (unlikely(hnae3_get_bit(l234info, HNS3_RXD_L2E_B))) { - netdev_err(netdev, "L2 error pkt\n"); u64_stats_update_begin(&ring->syncp); ring->stats.l2_err++; u64_stats_update_end(&ring->syncp); -- 2.7.4