diff options
author | Maciej Fijalkowski <maciej.fijalkowski@intel.com> | 2024-08-07 12:53:24 +0200 |
---|---|---|
committer | Tony Nguyen <anthony.l.nguyen@intel.com> | 2024-08-20 13:19:52 -0700 |
commit | 50b2143356e888777fc5bca023c39f34f404613a (patch) | |
tree | bbe77ba7fdfb8876d8d9417a453a994ee00d1df3 /drivers/net/ethernet/intel/ice/ice_base.c | |
parent | 7565c39da89dc6ac9b1b0733bd70276bc66612b1 (diff) |
ice: fix page reuse when PAGE_SIZE is over 8k
Architectures that have PAGE_SIZE >= 8192 such as arm64 should act the
same as x86 currently, meaning reuse of a page should only take place
when no one else is busy with it.
Do two things independently of underlying PAGE_SIZE:
- store the page count under ice_rx_buf::pgcnt
- then act upon its value vs ice_rx_buf::pagecnt_bias when making the
decision regarding page reuse
Fixes: 2b245cb29421 ("ice: Implement transmit and NAPI support")
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>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_base.c')
0 files changed, 0 insertions, 0 deletions