Skip to content

Commit b966ad8

Browse files
mfijalkoanguy11
authored andcommitted
ice: fix ICE_LAST_OFFSET formula
For bigger PAGE_SIZE archs, ice driver works on 3k Rx buffers. Therefore, ICE_LAST_OFFSET should take into account ICE_RXBUF_3072, not ICE_RXBUF_2048. Fixes: 7237f5b ("ice: introduce legacy Rx flag") Suggested-by: Luiz Capitulino <[email protected]> Signed-off-by: Maciej Fijalkowski <[email protected]> Tested-by: Chandan Kumar Rout <[email protected]> (A Contingent Worker at Intel) Signed-off-by: Tony Nguyen <[email protected]>
1 parent 50b2143 commit b966ad8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/intel/ice/ice_txrx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ ice_can_reuse_rx_page(struct ice_rx_buf *rx_buf)
842842
return false;
843843
#if (PAGE_SIZE >= 8192)
844844
#define ICE_LAST_OFFSET \
845-
(SKB_WITH_OVERHEAD(PAGE_SIZE) - ICE_RXBUF_2048)
845+
(SKB_WITH_OVERHEAD(PAGE_SIZE) - ICE_RXBUF_3072)
846846
if (rx_buf->page_offset > ICE_LAST_OFFSET)
847847
return false;
848848
#endif /* PAGE_SIZE >= 8192) */

0 commit comments

Comments
 (0)