Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3651431pxk; Tue, 29 Sep 2020 02:39:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXhN66gs90BiGLaI8SAv99pFvQVHjnUnTsMiBR3od9OyC0OxEW3ig09XYUpLTW9o2Vz9oj X-Received: by 2002:a17:906:819:: with SMTP id e25mr2991506ejd.211.1601372372904; Tue, 29 Sep 2020 02:39:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601372372; cv=none; d=google.com; s=arc-20160816; b=fnmzeoxvGIflJbm8PWDY50vAUjUPTPb7kyIt+DMclmzlVAK6jqYSePm+dlmHZM7j/Q N8Vz7B9ofRF+R3Dly08aVmzN0mQaVuBRV8tmZljQE81wpbIc2AnHkvG1OyJ26B24vGAX BQ0g4qk5KTQfUT9zGbBHbxxrGCar/dFLmT+zGcHzz1/GA6DKr3QXLO0Mxq2aHaqKRgNq WkyPFn80U7jpp6Q6U9C6p2VVO1J5TN1RIfGxuQG+Qzxsv/0otnfYjyZI/Q8pErr/s9Fn e3MQUKB2PCQTC81BwdgeTZbgX8CC18BVcdyBI/6MHN13N917y/KKBoaXF9tujr6wQM8o 7+/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=TaFYl5oVHjuLEyOlNTqZRkboNeNquurgw+JfmHI6+2o=; b=b8qnwpfJFk2BwnkqYfVxJsPpfBLRDLpyXaV+TvE5BqDeYqNgNPoCsO7NjPrfoj+q2l aXOAuARxAPaNY6LWOa6NCGTeVLRFnWKElFPUwbzqxzpnhZu6dBcyO+TiO7nXYpjs2dKL acdjwLtJtnQZtMv7rUIpHDYeTeZVnRQTvojvDYoHYv2z1pp6wm4yFZ8dzim5nhBrM/sY c26CuAhfDbcDh9yicTGR5MMJ5Y3/IbfPyEbnuY95uoJRm7wmVCG2BdR2lJplKJ9QWihM 1SF7htv4y6HL/eOqy/VT6rf5i/T4WXCk/7eYOIAwSpGkLQES6o8Gy2lUuqbuPmejvBDp v+8w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ds18si2384135ejc.745.2020.09.29.02.39.09; Tue, 29 Sep 2020 02:39:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728073AbgI2Jex (ORCPT + 99 others); Tue, 29 Sep 2020 05:34:53 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:14770 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727841AbgI2Jew (ORCPT ); Tue, 29 Sep 2020 05:34:52 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 8FBACE67106B21A83471; Tue, 29 Sep 2020 17:34:50 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.487.0; Tue, 29 Sep 2020 17:34:44 +0800 From: Huazhong Tan To: CC: , , , , , , Huazhong Tan Subject: [PATCH net-next 2/7] net: hns3: rename trace event hns3_over_8bd Date: Tue, 29 Sep 2020 17:32:00 +0800 Message-ID: <1601371925-49426-3-git-send-email-tanhuazhong@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1601371925-49426-1-git-send-email-tanhuazhong@huawei.com> References: <1601371925-49426-1-git-send-email-tanhuazhong@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since the maximun BD number may not be 8 now, so rename hns3_over_8bd() to hns3_over_max_bd(). Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 4 ++-- drivers/net/ethernet/hisilicon/hns3/hns3_trace.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c index a393755..df52abb 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c @@ -1283,7 +1283,7 @@ static int hns3_nic_maybe_stop_tx(struct hns3_enet_ring *ring, if (bd_num <= HNS3_MAX_TSO_BD_NUM && skb_is_gso(skb) && !hns3_skb_need_linearized(skb, bd_size, bd_num, max_non_tso_bd_num)) { - trace_hns3_over_8bd(skb); + trace_hns3_over_max_bd(skb); goto out; } @@ -1294,7 +1294,7 @@ static int hns3_nic_maybe_stop_tx(struct hns3_enet_ring *ring, if ((skb_is_gso(skb) && bd_num > HNS3_MAX_TSO_BD_NUM) || (!skb_is_gso(skb) && bd_num > max_non_tso_bd_num)) { - trace_hns3_over_8bd(skb); + trace_hns3_over_max_bd(skb); return -ENOMEM; } diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_trace.h b/drivers/net/ethernet/hisilicon/hns3/hns3_trace.h index 7bddcca..5153e5d 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_trace.h +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_trace.h @@ -53,7 +53,7 @@ DECLARE_EVENT_CLASS(hns3_skb_template, ) ); -DEFINE_EVENT(hns3_skb_template, hns3_over_8bd, +DEFINE_EVENT(hns3_skb_template, hns3_over_max_bd, TP_PROTO(struct sk_buff *skb), TP_ARGS(skb)); -- 2.7.4