summaryrefslogtreecommitdiff
path: root/lib/raid/raid6/git@git.tavy.me:linux-stable.git
diff options
context:
space:
mode:
authorPawan Gupta <pawan.kumar.gupta@linux.intel.com>2026-06-29 22:38:38 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2026-07-01 10:33:40 +0200
commita23c1c5396a91680703360d1ee28a44657c503c4 (patch)
treeac518258cf27d1e25116130757c8562b963e3932 /lib/raid/raid6/git@git.tavy.me:linux-stable.git
parent0bb99f2cfaae6822d734d69722de30af823efdf3 (diff)
bpf: Skip redundant IBPB in pack allocator
bpf_prog_pack_alloc() issues IBPB on all CPUs on every cBPF allocation, even when reusing chunks from an existing pack where no new memory was touched since the last IBPB. Since IBPB on all CPUs is heavy, Dave Hansen suggested to track allocation since last IBPB, and only issue IBPB at reuse for the chunks that have not seen an IBPB since they were last freed. Track per-pack whether an IBPB is needed via arch_flush_needed. Set it when allocating a chunk, reset on IBPB flush. On reuse, conditionally issue the flush. Since IBPB invalidates all BTB entries, clear the flag on all packs after flushing. Signed-off-by: Pawan Gupta <pawan.kumar.gupta@linux.intel.com> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'lib/raid/raid6/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions