Hi,

this set adds check to make sure offload behaviour is correct.
First when atomic counters are used, we must make sure the map
does not already contain data we did not prepare for holding
atomics.

Second patch double checks vNIC capabilities for program offload
in case program is shared by multiple vNICs with different
constraints.

Jakub Kicinski (2):
  nfp: bpf: protect against mis-initializing atomic counters
  nfp: bpf: double check vNIC capabilities after object sharing

 drivers/net/ethernet/netronome/nfp/bpf/main.h | 10 ++-
 .../net/ethernet/netronome/nfp/bpf/offload.c  | 32 ++++++++-
 .../net/ethernet/netronome/nfp/bpf/verifier.c | 69 ++++++++++++++++---
 3 files changed, 98 insertions(+), 13 deletions(-)

-- 
2.17.1

Reply via email to