[v13 2/3] net/af_xdp: fix multi interface support for K8s

Loftus, Ciara ciara.loftus at intel.com
Mon Apr 8 12:46:58 CEST 2024


>
> +#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
> +



More information about the stable mailing list