Commit a9847a07 authored by shenhao's avatar shenhao Committed by Yang Yingliang
Browse files

net: hns3: add one parameter for function hns3_nic_maybe_stop_tx()



driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

--------------------------------------------

Function hns3_nic_net_xmit() and functioin hns3_nic_maybe_stop_tx() both
get ring pointer from priv->ring[]. According to opinion of community to
reduce this kind of operation, this patch adds parameter ring for function
hns3_nic_maybe_stop_tx().

Signed-off-by: default avatarGuangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: default avatarshenhao <shenhao21@huawei.com>
Reviewed-by: default avatarZhong Zhaohui <zhongzhaohui@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 8de8e84f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment