linux/net/core
Jakub Kicinski ce158e580a xdp: add reporting of offload mode
Extend the XDP_ATTACHED_* values to include offloaded mode.
Let drivers report whether program is installed in the driver
or the HW by changing the prog_attached field from bool to
u8 (type of the netlink attribute).

Exploit the fact that the value of XDP_ATTACHED_DRV is 1,
therefore since all drivers currently assign the mode with
double negation:
       mode = !!xdp_prog;
no drivers have to be modified.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-06-23 13:42:20 -04:00
..
datagram.c net: factor out a helper to decrement the skb refcount 2017-06-12 10:01:29 -04:00
dev.c xdp: add reporting of offload mode 2017-06-23 13:42:20 -04:00
dev_addr_lists.c
dev_ioctl.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-06-21 17:35:22 -04:00
devlink.c devlink: fix potential memort leak 2017-06-05 11:24:28 -04:00
drop_monitor.c
dst.c net: remove DST_NOCACHE flag 2017-06-17 22:54:01 -04:00
dst_cache.c
ethtool.c
fib_rules.c fib_rules: Resolve goto rules target on delete 2017-06-20 12:39:18 -04:00
filter.c bpf: permits narrower load from bpf program context fields 2017-06-14 14:56:25 -04:00
flow.c
flow_dissector.c net/flow_dissector: add support for dissection of misc ip header fields 2017-06-04 18:12:23 -04:00
gen_estimator.c
gen_stats.c
gro_cells.c
hwbm.c
link_watch.c
lwt_bpf.c net: add extack arg to lwtunnel build state 2017-05-30 11:55:32 -04:00
lwtunnel.c net: add extack arg to lwtunnel build state 2017-05-30 11:55:32 -04:00
Makefile
neighbour.c neigh: Really delete an arp/neigh entry on "ip neigh delete" or "arp -d" 2017-06-04 21:37:18 -04:00
net-procfs.c net-procfs: Use vsnprintf extension %phN 2017-06-04 19:52:58 -04:00
net-sysfs.c net: make struct net_device::tx_queue_len unsigned int 2017-05-18 10:19:30 -04:00
net-sysfs.h
net-traces.c
net_namespace.c netns: fix error code when the nsid is already used 2017-06-10 15:58:50 -04:00
netclassid_cgroup.c
netevent.c
netpoll.c networking: make skb_push & __skb_push return void pointers 2017-06-16 11:48:40 -04:00
netprio_cgroup.c
pktgen.c networking: make skb_push & __skb_push return void pointers 2017-06-16 11:48:40 -04:00
ptp_classifier.c
request_sock.c
rtnetlink.c xdp: add reporting of offload mode 2017-06-23 13:42:20 -04:00
scm.c
secure_seq.c tcp: Namespaceify sysctl_tcp_timestamps 2017-06-08 10:53:29 -04:00
skbuff.c networking: make skb_push & __skb_push return void pointers 2017-06-16 11:48:40 -04:00
sock.c net: introduce SO_PEERGROUPS getsockopt 2017-06-21 11:38:41 -04:00
sock_diag.c
sock_reuseport.c
stream.c
sysctl_net_core.c net: move somaxconn init from sysctl code 2017-05-25 13:12:17 -04:00
timestamping.c
tso.c
utils.c