net: mvpp2: fix TSO headers allocation and management
authorYan Markman <ymarkman@marvell.com>
Mon, 23 Oct 2017 13:24:29 +0000 (15:24 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Oct 2017 09:34:09 +0000 (18:34 +0900)
commit822eaf7cfb7c4783375bceadbc7651137346ac00
treec4f4cefadf8ffcacae7250d586af987470046864
parent07f37efdaa3fa327ecbfd519110bc6bd0c2582cc
net: mvpp2: fix TSO headers allocation and management

TSO headers are managed with txq index and therefore should be aligned
with the txq size, not with the aggregated txq size.

Fixes: 186cd4d4e414 ("net: mvpp2: software tso support")
Reported-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Yan Markman <ymarkman@marvell.com>
Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2.c