1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00

net: hns3: rename trace event hns3_over_8bd

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>
This commit is contained in:
Huazhong Tan 2020-09-29 17:32:00 +08:00 committed by David S. Miller
parent fd665b3dba
commit 6ad595bc98
2 changed files with 3 additions and 3 deletions

View 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) && if (bd_num <= HNS3_MAX_TSO_BD_NUM && skb_is_gso(skb) &&
!hns3_skb_need_linearized(skb, bd_size, bd_num, !hns3_skb_need_linearized(skb, bd_size, bd_num,
max_non_tso_bd_num)) { max_non_tso_bd_num)) {
trace_hns3_over_8bd(skb); trace_hns3_over_max_bd(skb);
goto out; 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) || if ((skb_is_gso(skb) && bd_num > HNS3_MAX_TSO_BD_NUM) ||
(!skb_is_gso(skb) && (!skb_is_gso(skb) &&
bd_num > max_non_tso_bd_num)) { bd_num > max_non_tso_bd_num)) {
trace_hns3_over_8bd(skb); trace_hns3_over_max_bd(skb);
return -ENOMEM; return -ENOMEM;
} }

View 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_PROTO(struct sk_buff *skb),
TP_ARGS(skb)); TP_ARGS(skb));