Skip to content

Commit 43ed0ac

Browse files
Nithin Sujirgregkh
Nithin Sujir
authored andcommitted
tg3: Expand 4g_overflow_test workaround to skb fragments of any size.
commit 3756791 upstream. The current driver assumes that an skb fragment can only be upto jumbo size. Presumably this was a fast-path optimization. This assumption is no longer true as fragments can be upto 32k. v2: Remove unnecessary parantheses per Eric Dumazet. Signed-off-by: Nithin Nayak Sujir <[email protected]> Signed-off-by: Michael Chan <[email protected]> Signed-off-by: David S. Miller <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 36bbba0 commit 43ed0ac

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/broadcom

1 file changed

+1
-1
lines changed

drivers/net/ethernet/broadcom/tg3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7608,7 +7608,7 @@ static inline int tg3_4g_overflow_test(dma_addr_t mapping, int len)
76087608
{
76097609
u32 base = (u32) mapping & 0xffffffff;
76107610

7611-
return (base > 0xffffdcc0) && (base + len + 8 < base);
7611+
return base + len + 8 < base;
76127612
}
76137613

76147614
/* Test for TSO DMA buffers that cross into regions which are within MSS bytes

0 commit comments

Comments
 (0)