>
> +#ifdef ETH_AF_XDP_UPDATE_XSKMAP
> +static __rte_always_inline int
> +update_xskmap(struct xsk_socket *xsk, int map_fd, int xsk_queue_idx
> __rte_unused)
> +{
> + return xsk_socket__update_xskmap(xsk, map_fd);
> +}
> +#else
> +static __rte_always_inline int
> +update_xskmap(struct xsk_socket *xsk, int map_fd, int xsk_queue_idx)
> +{
> + int fd = xsk_socket__fd(xsk);
'fd' computed here is not used in this function so generates an unused variable
warning.
> + return bpf_map_update_elem(map_fd, &xsk_queue_idx, &map_fd,
> 0);
> +}
> +#endif
> +