From: Chen Yahui Date: Fri, 16 Sep 2022 10:31:43 +0000 (+0800) Subject: af_xdp: compile error undeclared identifier 'SOL_XDP' X-Git-Tag: v23.06-rc0~237 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F37%2F37137%2F4;p=vpp.git af_xdp: compile error undeclared identifier 'SOL_XDP' Type: fix Signed-off-by: Chen Yahui Change-Id: Ia447420f692f1487d343886845d648d766e43c27 Signed-off-by: Chen Yahui --- diff --git a/src/plugins/af_xdp/device.c b/src/plugins/af_xdp/device.c index 5a16ede1323..a571155a707 100644 --- a/src/plugins/af_xdp/device.c +++ b/src/plugins/af_xdp/device.c @@ -319,6 +319,9 @@ af_xdp_create_queue (vlib_main_t *vm, af_xdp_create_if_args_t *args, fd = xsk_socket__fd (*xsk); optlen = sizeof (opt); +#ifndef SOL_XDP +#define SOL_XDP 283 +#endif if (getsockopt (fd, SOL_XDP, XDP_OPTIONS, &opt, &optlen)) { args->rv = VNET_API_ERROR_SYSCALL_ERROR_3;