aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_lib.c
diff options
context:
space:
mode:
authorMaciej Fijalkowski <[email protected]>2021-05-20 06:34:59 +0000
committerTony Nguyen <[email protected]>2021-06-09 20:15:10 +0000
commitebc5399ea1dfcddac31974091086a3379141899b (patch)
tree07d72cb56ed1693d58029b341f8fc1b42dfd8591 /drivers/net/ethernet/intel/ice/ice_lib.c
parentnet: lantiq: disable interrupt before sheduling NAPI (diff)
downloadkernel-ebc5399ea1dfcddac31974091086a3379141899b.tar.gz
kernel-ebc5399ea1dfcddac31974091086a3379141899b.zip
ice: add ndo_bpf callback for safe mode netdev ops
ice driver requires a programmable pipeline firmware package in order to have a support for advanced features. Otherwise, driver falls back to so called 'safe mode'. For that mode, ndo_bpf callback is not exposed and when user tries to load XDP program, the following happens: $ sudo ./xdp1 enp179s0f1 libbpf: Kernel error message: Underlying driver does not support XDP in native mode link set xdp fd failed which is sort of confusing, as there is a native XDP support, but not in the current mode. Improve the user experience by providing the specific ndo_bpf callback dedicated for safe mode which will make use of extack to explicitly let the user know that the DDP package is missing and that's the reason that the XDP can't be loaded onto interface currently. Cc: Jamal Hadi Salim <[email protected]> Fixes: efc2214b6047 ("ice: Add support for XDP") Signed-off-by: Maciej Fijalkowski <[email protected]> Tested-by: Kiran Bhandare <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_lib.c')
0 files changed, 0 insertions, 0 deletions