mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[NET]: Hide the queue_mapping field inside netif_subqueue_stopped
Many places get the queue_mapping field from skb to pass it to the netif_subqueue_stopped() which will be 0 in any case. Make the helper that works with sk_buff Signed-off-by: Pavel Emelyanov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
4e3ab47a54
commit
668f895a85
5 changed files with 15 additions and 10 deletions
|
|
@ -284,7 +284,7 @@ restart:
|
|||
if (slave->qdisc_sleeping != q)
|
||||
continue;
|
||||
if (netif_queue_stopped(slave) ||
|
||||
netif_subqueue_stopped(slave, subq) ||
|
||||
__netif_subqueue_stopped(slave, subq) ||
|
||||
!netif_running(slave)) {
|
||||
busy = 1;
|
||||
continue;
|
||||
|
|
@ -294,7 +294,7 @@ restart:
|
|||
case 0:
|
||||
if (netif_tx_trylock(slave)) {
|
||||
if (!netif_queue_stopped(slave) &&
|
||||
!netif_subqueue_stopped(slave, subq) &&
|
||||
!__netif_subqueue_stopped(slave, subq) &&
|
||||
slave->hard_start_xmit(skb, slave) == 0) {
|
||||
netif_tx_unlock(slave);
|
||||
master->slaves = NEXT_SLAVE(q);
|
||||
|
|
|
|||
Loading…
Reference in a new issue