[PATCH v2] net: core: dev: replace state xoff flag comparison by netif_xmit_stopped method

2019-10-01 Thread jcfaracco
From: Julio Faracco 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

[PATCH net-next] net: core: dev: replace state xoff flag comparison by netif_xmit_stopped method

2019-09-22 Thread jcfaracco
From: Julio Faracco 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