xdp: add a third way of loading the BPF program
We need that in kresd, as overwriting the program would detach all the AF_XDP sockets and only the last kresd could receive. It's not perfect, but I suppose we can bear that extraneous message.
Showing
- src/libknot/xdp/af_xdp.c 1 addition, 2 deletionssrc/libknot/xdp/af_xdp.c
- src/libknot/xdp/af_xdp.h 14 additions, 1 deletionsrc/libknot/xdp/af_xdp.h
- src/libknot/xdp/bpf-user.c 32 additions, 10 deletionssrc/libknot/xdp/bpf-user.c
- src/libknot/xdp/bpf-user.h 5 additions, 2 deletionssrc/libknot/xdp/bpf-user.h
Please register or sign in to comment