Skip to content

Commit 34c1520

Browse files
yuqijin16Jakub Kicinski
authored andcommitted
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: a993db8 ("net: stmmac: Enable support for > 32 Bits addressing in XGMAC") Cc: Eric Dumazet <[email protected]> Cc: Giuseppe Cavallaro <[email protected]> Cc: Alexandre Torgue <[email protected]> Cc: Jose Abreu <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: Maxime Coquelin <[email protected]> Signed-off-by: yuqi jin <[email protected]> Signed-off-by: Shaokun Zhang <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 011c728 commit 34c1520

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/stmicro/stmmac/stmmac_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2995,6 +2995,7 @@ static netdev_tx_t stmmac_tso_xmit(struct sk_buff *skb, struct net_device *dev)
29952995
} else {
29962996
stmmac_set_desc_addr(priv, first, des);
29972997
tmp_pay_len = pay_len;
2998+
des += proto_hdr_len;
29982999
}
29993000

30003001
stmmac_tso_allocator(priv, des, tmp_pay_len, (nfrags == 0), queue);

0 commit comments

Comments
 (0)