OSDN Git Service

net: stmmac: Fix the problem of tso_xmit
authoryuqi jin <jinyuqi@huawei.com>
Mon, 21 Oct 2019 03:27:34 +0000 (11:27 +0800)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Tue, 22 Oct 2019 20:04:16 +0000 (13:04 -0700)
commit34c15202896d11e3974788daf9005a84ec45f7a2
tree657e3b7fd8643b5e2e303a0982cfe8a00464b3a7
parent011c7289de619d76f82b0d9e9fec3f59d2fe57f7
net: stmmac: Fix the problem of tso_xmit

When the address width of DMA is greater than 32, the packet header occupies
a BD descriptor. The starting address of the data should be added to the
header length.

Fixes: a993db88d17d ("net: stmmac: Enable support for > 32 Bits addressing in XGMAC")
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Cc: Alexandre Torgue <alexandre.torgue@st.com>
Cc: Jose Abreu <joabreu@synopsys.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
Signed-off-by: yuqi jin <jinyuqi@huawei.com>
Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c