]> git.baikalelectronics.ru Git - kernel.git/commit
virtio_net: reject XDP programs using header adjustment
authorJakub Kicinski <jakub.kicinski@netronome.com>
Wed, 25 Jan 2017 22:56:36 +0000 (14:56 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Jan 2017 03:48:40 +0000 (22:48 -0500)
commit8720113e5cd75aadc80307b8522357993f4cfce1
treedcf4ad8675032d01620f9e4a2ed1a32cdb35026f
parentee446fb67ef62c85ae5651a11d42bb7e7d7080dc
virtio_net: reject XDP programs using header adjustment

commit dab8fa801507 ("bpf: xdp: Allow head adjustment in XDP prog")
added a new XDP helper to prepend and remove data from a frame.
Make virtio_net reject programs making use of this helper until
proper support is added.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Acked-by: John Fastabend <john.r.fastabend@intel.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c