]> git.baikalelectronics.ru Git - kernel.git/commit
net: core: dev: replace state xoff flag comparison by netif_xmit_stopped method
authorJulio Faracco <jcfaracco@gmail.com>
Tue, 1 Oct 2019 14:39:04 +0000 (11:39 -0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Oct 2019 16:26:03 +0000 (09:26 -0700)
commitc4487859b1029911325123c614ec70dd92b7b1b6
tree0ef40e10869fccb90f574b7b63c02e9db7862bc7
parent1971c6bc97406af43e31d9329ba645d8d719047a
net: core: dev: replace state xoff flag comparison by netif_xmit_stopped method

Function netif_schedule_queue() has a hardcoded comparison between queue
state and any xoff flag. This comparison does the same thing as method
netif_xmit_stopped(). In terms of code clarity, it is better. See other
methods like: generic_xdp_tx() and dev_direct_xmit().

Signed-off-by: Julio Faracco <jcfaracco@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c