aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJoshua Hay <joshua.a.hay@intel.com>2025-07-25 11:42:19 -0700
committerTony Nguyen <anthony.l.nguyen@intel.com>2025-08-21 09:04:58 -0700
commitf2d18e16479cac7a708d77cbfb4220a9114a71fc (patch)
treefb770ed552dedee9e49bec4d605a709f7adb2ee7 /tools/perf/scripts/python
parentidpf: add support for Tx refillqs in flow scheduling mode (diff)
downloadwireguard-linux-f2d18e16479cac7a708d77cbfb4220a9114a71fc.tar.xz
wireguard-linux-f2d18e16479cac7a708d77cbfb4220a9114a71fc.zip
idpf: improve when to set RE bit logic
Track the gap between next_to_use and the last RE index. Set RE again if the gap is large enough to ensure RE bit is set frequently. This is critical before removing the stashing mechanisms because the opportunistic descriptor ring cleaning from the out-of-order completions will go away. Previously the descriptors would be "cleaned" by both the descriptor (RE) completion and the out-of-order completions. Without the latter, we must ensure the RE bit is set more frequently. Otherwise, it's theoretically possible for the descriptor ring next_to_clean to never advance. The previous implementation was dependent on the start of a packet falling on a 64th index in the descriptor ring, which is not guaranteed with large packets. Signed-off-by: Luigi Rizzo <lrizzo@google.com> Signed-off-by: Brian Vazquez <brianvv@google.com> Signed-off-by: Joshua Hay <joshua.a.hay@intel.com> Reviewed-by: Madhu Chittim <madhu.chittim@intel.com> Tested-by: Samuel Salin <Samuel.salin@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions