net: hns3: rename trace event hns3_over_8bd
authorHuazhong Tan <tanhuazhong@huawei.com>
Tue, 29 Sep 2020 09:32:00 +0000 (17:32 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Sep 2020 20:14:24 +0000 (13:14 -0700)
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 <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
drivers/net/ethernet/hisilicon/hns3/hns3_trace.h

index a3937556e0b7c8b83ccac511ba9f9fe41207a7b1..df52abb2779a00957293826a5eb1a652b589c606 100644 (file)
@@ -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;
                }
 
index 7bddcca148a5ed948e2a725287872c7fd8f97ee7..5153e5d41bbd62b0dc513c5ae4720b632404a817 100644 (file)
@@ -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));