-
- Downloads
nfp: bpf: add basic control channel communication
For map support we will need to send and receive control messages. Add basic support for sending a message to FW, and waiting for a reply. Control messages are tagged with a 16 bit ID. Add a simple ID allocator and make sure we don't allow too many messages in flight, to avoid request <> reply mismatches. Signed-off-by:Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by:
Quentin Monnet <quentin.monnet@netronome.com> Signed-off-by:
Daniel Borkmann <daniel@iogearbox.net>
Showing
- drivers/net/ethernet/netronome/nfp/Makefile 1 addition, 0 deletionsdrivers/net/ethernet/netronome/nfp/Makefile
- drivers/net/ethernet/netronome/nfp/bpf/cmsg.c 238 additions, 0 deletionsdrivers/net/ethernet/netronome/nfp/bpf/cmsg.c
- drivers/net/ethernet/netronome/nfp/bpf/fw.h 22 additions, 0 deletionsdrivers/net/ethernet/netronome/nfp/bpf/fw.h
- drivers/net/ethernet/netronome/nfp/bpf/main.c 5 additions, 0 deletionsdrivers/net/ethernet/netronome/nfp/bpf/main.c
- drivers/net/ethernet/netronome/nfp/bpf/main.h 23 additions, 0 deletionsdrivers/net/ethernet/netronome/nfp/bpf/main.h
- drivers/net/ethernet/netronome/nfp/nfp_app.h 9 additions, 0 deletionsdrivers/net/ethernet/netronome/nfp/nfp_app.h
- drivers/net/ethernet/netronome/nfp/nfp_net.h 12 additions, 0 deletionsdrivers/net/ethernet/netronome/nfp/nfp_net.h
- drivers/net/ethernet/netronome/nfp/nfp_net_common.c 7 additions, 0 deletionsdrivers/net/ethernet/netronome/nfp/nfp_net_common.c
Loading
Please register or sign in to comment