Skip to content

Commit 5df7c5a

Browse files
committed
ice: fix ICE_LAST_OFFSET formula
JIRA: https://issues.redhat.com/browse/RHEL-37905 Upstream commit(s): commit b966ad8 Author: Maciej Fijalkowski <maciej.fijalkowski@intel.com> Date: Wed Aug 7 12:53:25 2024 +0200 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 <luizcap@redhat.com> Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com> Tested-by: Chandan Kumar Rout <chandanx.rout@intel.com> (A Contingent Worker at Intel) Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com> Signed-off-by: Petr Oros <poros@redhat.com>
1 parent a8ba41d commit 5df7c5a

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)