Message ID | 1540246946-12784-2-git-send-email-thor.thayer@linux.intel.com |
---|---|
State | Accepted, archived |
Delegated to: | David Miller |
Headers | show |
Series | [PATCHv2,1/2] arm64: dts: stratix10: Support Ethernet Jumbo frame | expand |
From: thor.thayer@linux.intel.com Date: Mon, 22 Oct 2018 17:22:26 -0500 > From: Thor Thayer <thor.thayer@linux.intel.com> > > Ping with Jumbo packet does not reply and get a watchdog timeout ... > Inspection of queue showed Jumbo packets were not sent out. > The ring Jumbo packet function needs to set the OWN bit so > the packet is sent. > > Signed-off-by: Thor Thayer <thor.thayer@linux.intel.com> > --- > v2 Add fix for jumbo frames > 8K (same OWN bit) Applied.
diff --git a/drivers/net/ethernet/stmicro/stmmac/ring_mode.c b/drivers/net/ethernet/stmicro/stmmac/ring_mode.c index a7ffc73fffe8..abc3f85270cd 100644 --- a/drivers/net/ethernet/stmicro/stmmac/ring_mode.c +++ b/drivers/net/ethernet/stmicro/stmmac/ring_mode.c @@ -59,7 +59,7 @@ static int jumbo_frm(void *p, struct sk_buff *skb, int csum) desc->des3 = cpu_to_le32(des2 + BUF_SIZE_4KiB); stmmac_prepare_tx_desc(priv, desc, 1, bmax, csum, - STMMAC_RING_MODE, 0, false, skb->len); + STMMAC_RING_MODE, 1, false, skb->len); tx_q->tx_skbuff[entry] = NULL; entry = STMMAC_GET_ENTRY(entry, DMA_TX_SIZE); @@ -91,7 +91,7 @@ static int jumbo_frm(void *p, struct sk_buff *skb, int csum) tx_q->tx_skbuff_dma[entry].is_jumbo = true; desc->des3 = cpu_to_le32(des2 + BUF_SIZE_4KiB); stmmac_prepare_tx_desc(priv, desc, 1, nopaged_len, csum, - STMMAC_RING_MODE, 0, true, skb->len); + STMMAC_RING_MODE, 1, true, skb->len); } tx_q->cur_tx = entry;