bpf: virtio_net: Report bpf_prog ID during XDP_QUERY_PROG
authorMartin KaFai Lau <kafai@fb.com>
Fri, 16 Jun 2017 00:29:12 +0000 (17:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Jun 2017 15:58:36 +0000 (11:58 -0400)
commit5b0e6629be5958d70e1f3263b021f0e4038fc675
tree0e84e92122e4da2d6fa476c1ef34578ea771f6aa
parent821b2e294433f3b4e7db6911da5b0806c38d7bda
bpf: virtio_net: Report bpf_prog ID during XDP_QUERY_PROG

Add support to virtio_net to report bpf_prog ID during XDP_QUERY_PROG.

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Cc: John Fastabend <john.fastabend@gmail.com>
Cc: Jason Wang <jasowang@redhat.com>
Acked-by: Alexei Starovoitov <ast@fb.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c