[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC 2/6] tap: Add support for bpf ioctls
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [RFC 2/6] tap: Add support for bpf ioctls |
Date: |
Thu, 30 Aug 2018 10:21:14 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 |
On 08/30/2018 09:27 AM, Sameeh Jubran wrote:
From: Sameeh Jubran <address@hidden>
Starting from kernel v4.16 tun device supports TUNSETSTEERINGEBPF and
TUNSETFILTEREBPF.
Signed-off-by: Sameeh Jubran <address@hidden>
---
+++ b/qapi/net.json
@@ -692,3 +692,14 @@
##
{ 'event': 'NIC_RX_FILTER_CHANGED',
'data': { '*name': 'str', 'path': 'str' } }
+
+##
+# @BPFType:
+#
+# BPF programs types provided as an argument for tap bpf ioctls
+#
+# Since: 2.12
You missed 2.12 by a long shot; this should be 3.1.
+#
+##
+{ 'enum': 'BPFType',
+ 'data': [ 'filter', 'steering' ] }
It might also be wise to document these two values in addition to the
documentation of the enum as a whole.
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
- [Qemu-devel] [RFC 0/6] Virtio-net: Support RSS, Sameeh Jubran, 2018/08/30
- [Qemu-devel] [RFC 4/6] virtio-net: implement steering mode feature, Sameeh Jubran, 2018/08/30
- [Qemu-devel] [RFC 3/6] vhost-net: Expose vhost_net_get_fd, Sameeh Jubran, 2018/08/30
- [Qemu-devel] [RFC 2/6] tap: Add support for bpf ioctls, Sameeh Jubran, 2018/08/30
- Re: [Qemu-devel] [RFC 2/6] tap: Add support for bpf ioctls,
Eric Blake <=
- [Qemu-devel] [RFC 5/6] virtio-net: steering mode: Implement rss support, Sameeh Jubran, 2018/08/30
- [Qemu-devel] [RFC 1/6] Add bpf support to qemu, Sameeh Jubran, 2018/08/30
- [Qemu-devel] [RFC 6/6] virtio-net: rss: Add bpf filter, Sameeh Jubran, 2018/08/30