]> www.infradead.org Git - users/jedix/linux-maple.git/commit
virtio_net: Support RX hash XDP hint
authorLiang Chen <liangchen.linux@gmail.com>
Wed, 17 Apr 2024 07:18:22 +0000 (15:18 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 18 Apr 2024 11:54:04 +0000 (13:54 +0200)
commitaa37f8916d20cf58437d507fc9599492a342b3cd
tree2ec50c6bd3c3a304a306bc8af6593f7a2c167acc
parent576fedf87bbdb990f0172a26fb33374e2390e5b4
virtio_net: Support RX hash XDP hint

The RSS hash report is a feature that's part of the virtio specification.
Currently, virtio backends like qemu, vdpa (mlx5), and potentially vhost
(still a work in progress as per [1]) support this feature. While the
capability to obtain the RSS hash has been enabled in the normal path,
it's currently missing in the XDP path. Therefore, we are introducing
XDP hints through kfuncs to allow XDP programs to access the RSS hash.

1.
https://lore.kernel.org/all/20231015141644.260646-1-akihiko.odaki@daynix.com/#r

Signed-off-by: Liang Chen <liangchen.linux@gmail.com>
Acked-by: Jesper Dangaard Brouer <hawk@kernel.org>
Reviewed-by: Heng Qi <hengqi@linux.alibaba.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Link: https://lore.kernel.org/r/20240417071822.27831-1-liangchen.linux@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/virtio_net.c