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

Maryam Tahhan mtahhan at redhat.com
Mon Apr 8 14:50:50 CEST 2024


On 08/04/2024 11:46, Loftus, Ciara wrote:
>> +#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.

Thanks Ciara, sorry I missed this. I will fix it


>> +	return bpf_map_update_elem(map_fd, &xsk_queue_idx, &map_fd,
>> 0);
>> +}
>> +#endif
>> +




More information about the dev mailing list