Revert "ice: fix ICE_LAST_OFFSET formula"

This reverts commit 9a98cb967c.
This commit is contained in:
Ksawlii 2024-11-24 00:23:51 +01:00
parent 091e8249c6
commit 5036a90d21

View file

@ -786,7 +786,7 @@ ice_can_reuse_rx_page(struct ice_rx_buf *rx_buf, int rx_buf_pgcnt)
return false;
#else
#define ICE_LAST_OFFSET \
(SKB_WITH_OVERHEAD(PAGE_SIZE) - ICE_RXBUF_3072)
(SKB_WITH_OVERHEAD(PAGE_SIZE) - ICE_RXBUF_2048)
if (rx_buf->page_offset > ICE_LAST_OFFSET)
return false;
#endif /* PAGE_SIZE < 8192) */