]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
idpf: implement XDP_SETUP_PROG in ndo_bpf for splitq
authorMichal Kubiak <michal.kubiak@intel.com>
Tue, 26 Aug 2025 15:55:03 +0000 (17:55 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 8 Sep 2025 18:05:17 +0000 (11:05 -0700)
commit705457e7211f22c49b410eb25e83cef8a61bd560
tree28a1363645d3af96d5f8fc1ab1bc8e402686f2dc
parentac8a861f632e68e669ba8fb28645fd118f19a7ab
idpf: implement XDP_SETUP_PROG in ndo_bpf for splitq

Implement loading/removing XDP program using .ndo_bpf callback
in the split queue mode. Reconfigure and restart the queues if needed
(!!old_prog != !!new_prog), otherwise, just update the pointers.

Signed-off-by: Michal Kubiak <michal.kubiak@intel.com>
Signed-off-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Tested-by: Ramu R <ramu.r@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/idpf/idpf_lib.c
drivers/net/ethernet/intel/idpf/idpf_txrx.c
drivers/net/ethernet/intel/idpf/idpf_txrx.h
drivers/net/ethernet/intel/idpf/xdp.c
drivers/net/ethernet/intel/idpf/xdp.h