]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: Fix TSO descriptor with Enhanced Addressing
authorJose Abreu <Jose.Abreu@synopsys.com>
Wed, 6 Nov 2019 15:03:04 +0000 (16:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Nov 2019 05:22:55 +0000 (21:22 -0800)
commit7a16e83df9c96a8080523a9d66dacf6cf038225c
tree5f87170322039cdaada82928fb53ceb1f7265124
parent72d67bf38e1eb353e8f84ae8734b9ac27d64c605
net: stmmac: Fix TSO descriptor with Enhanced Addressing

When using addressing > 32 bits the TSO first descriptor only has the
header so we can't set the payload field for this descriptor. Let's
reset the variable so that buffer 2 value is zero.

Fixes: d776c5d4e97e ("net: stmmac: Enable support for > 32 Bits addressing in XGMAC")
Signed-off-by: Jose Abreu <Jose.Abreu@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c