diff options
author | 2022-09-28 21:30:07 +0800 | |
---|---|---|
committer | 2023-01-24 08:53:26 +0000 | |
commit | 7cbd3cc41916ececa97af0b3acbb50dee190d656 (patch) | |
tree | 96e668aef6064c61f1f566632ea396b196641d25 /src/vnet/classify/classify_api.c | |
parent | 139b2da5c533a84faca0ae1bf5b37c3185d9d4fb (diff) |
af_xdp: fix xdp socket create fail
In libbpf code, xsk_socket__create will call xsk_link_lookup to get the
xdp_sock bpf prog. But xsk_link_lookup can't get any bpf prog. This will
cause Libbpf not to insert the fd into xsks_map and return ERROR.
The solution to this problem is to insert fd into xsks_map ourselves
instead of libbpf.
Type: fix
Change-Id: Ic5d279c6ddc02d67371262d6106a5b53b70e7913
Signed-off-by: Chen Yahui <goodluckwillcomesoon@gmail.com>
Diffstat (limited to 'src/vnet/classify/classify_api.c')
0 files changed, 0 insertions, 0 deletions