]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: Re-work the queue selection for TSO packets
authorJose Abreu <Jose.Abreu@synopsys.com>
Mon, 8 Jul 2019 12:26:28 +0000 (14:26 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Jul 2019 19:36:06 +0000 (12:36 -0700)
commit9c41478fcf8b10abc7359efc4769579c25cb4f3f
tree6241791dbe08db302a66a1147aa7e32b9276a5ea
parentf5bfcceb660a2860729bbed3a301b54e3a1520ba
net: stmmac: Re-work the queue selection for TSO packets

Ben Hutchings says:
"This is the wrong place to change the queue mapping.
stmmac_xmit() is called with a specific TX queue locked,
and accessing a different TX queue results in a data race
for all of that queue's state.

I think this commit should be reverted upstream and in all
stable branches.  Instead, the driver should implement the
ndo_select_queue operation and override the queue mapping there."

Fixes: 6ef3d6fbcf08 ("net: stmmac: Send TSO packets always from Queue 0")
Suggested-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c