On Sun, Feb 8, 2026 at 10:34 PM Cindy Lu <lulu@redhat.com> wrote:
>
> This series adds a minimal vhost-net filter support for RX.
> It introduces a UAPI for VHOST_NET_SET_FILTER and a simple
> SOCK_SEQPACKET message header. The kernel side keeps a filter
> socket reference and routes RX packets to userspace when
> it was enabled.
I wonder if a packet socket is sufficient or is this for macvtap as well?
Thanks
>
> Tested
> - vhost=on and vhost=off
>
> Cindy Lu (3):
> uapi: vhost: add vhost-net netfilter offload API
> vhost/net: add netfilter socket support
> vhost/net: add RX netfilter offload path
>
> drivers/vhost/net.c | 338 +++++++++++++++++++++++++++++++++++++
> include/uapi/linux/vhost.h | 20 +++
> 2 files changed, 358 insertions(+)
>
> --
> 2.52.0
>