Commit a8ba41d
committed
ice: fix page reuse when PAGE_SIZE is over 8k
JIRA: https://issues.redhat.com/browse/RHEL-37905
Upstream commit(s):
commit 50b2143
Author: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Date: Wed Aug 7 12:53:24 2024 +0200
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: 2b245cb ("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>
Signed-off-by: Petr Oros <poros@redhat.com>1 parent 7d35a60 commit a8ba41d
1 file changed
+3
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
837 | 837 | | |
838 | 838 | | |
839 | 839 | | |
840 | | - | |
841 | 840 | | |
842 | 841 | | |
843 | 842 | | |
844 | | - | |
| 843 | + | |
845 | 844 | | |
846 | 845 | | |
847 | 846 | | |
848 | 847 | | |
849 | | - | |
| 848 | + | |
850 | 849 | | |
851 | 850 | | |
852 | 851 | | |
| |||
949 | 948 | | |
950 | 949 | | |
951 | 950 | | |
952 | | - | |
953 | | - | |
954 | | - | |
955 | | - | |
956 | | - | |
957 | | - | |
| 951 | + | |
958 | 952 | | |
959 | 953 | | |
960 | 954 | | |
| |||
0 commit comments