On 08/30/2018 09:27 AM, Sameeh Jubran wrote:
From: Sameeh Jubran <sjub...@redhat.com>

Starting from kernel v4.16 tun device supports TUNSETSTEERINGEBPF and
TUNSETFILTEREBPF.

Signed-off-by: Sameeh Jubran <sjub...@redhat.com>
---

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

Reply via email to