iproute2/man/man8
Daniel Borkmann c7272ca720 bpf: add initial support for attaching xdp progs
Now that we made the BPF loader generic as a library, reuse it
for loading XDP programs as well. This basically adds a minimal
start of a facility for iproute2 to load XDP programs. There
currently only exists the xdp1_user.c sample code in the kernel
tree that sets up netlink directly and an iovisor/bcc front-end.

Since we have all the necessary infrastructure in place already
from tc side, we can just reuse its loader back-end and thus
facilitate migration and usability among the two for people
familiar with tc/bpf already. Sharing maps, performing tail calls,
etc works the same way as with tc. Naturally, once kernel
configuration API evolves, we will extend new features for XDP
here as well, resp. extend dumping of related netlink attributes.

Minimal example:

  clang -target bpf -O2 -Wall -c prog.c -o prog.o
  ip [-force] link set dev em1 xdp obj prog.o       # attaching
  ip [-d] link                                      # dumping
  ip link set dev em1 xdp off                       # detaching

For the dump, intention is that in the first line for each ip
link entry, we'll see "xdp" to indicate that this device has an
XDP program attached. Once we dump some more useful information
via netlink (digest, etc), idea is that 'ip -d link' will then
display additional relevant program information below the "link/
ether [...]" output line for such devices, for example.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
2016-12-09 12:44:12 -08:00
..
.gitignore man8: build cleanup 2012-08-01 14:58:15 -07:00
arpd.8 docs: make spacing consistent 2015-04-07 08:41:36 -07:00
bridge.8 bridge: add support for the multicast flood flag 2016-10-17 05:29:24 -07:00
ctstat.8 iproute2 - Split up manual page installation 2012-04-12 09:47:19 -07:00
devlink-dev.8 devlink: Add option to set and show eswitch inline mode 2016-12-09 12:41:03 -08:00
devlink-monitor.8 devlink: add manpage for shared buffer 2016-04-19 08:01:05 -07:00
devlink-port.8 devlink: add manpage for shared buffer 2016-04-19 08:01:05 -07:00
devlink-sb.8 devlink: add manpage for shared buffer 2016-04-19 08:01:05 -07:00
devlink.8 man: Point to 'devlink-sb' from 'devlink' man page 2016-07-15 11:46:39 -07:00
genl.8 genl: add manpage 2015-11-03 16:27:39 -08:00
ifcfg.8 man: Spelling fixes 2015-11-23 15:39:25 -08:00
ifstat.8 ifstat: add manpage 2015-11-03 16:27:39 -08:00
ip-address.8.in ip {link,address}: add 'macsec' item to TYPE list 2016-07-28 11:12:39 -07:00
ip-addrlabel.8 man: ip-*.8: drop any reference to generic ip options 2016-03-02 11:23:53 -08:00
ip-fou.8 iproute2: correct port in FOU/GRE example 2016-06-08 09:40:07 -07:00
ip-gue.8 iproute2: Man pages for fou and gue 2014-11-06 16:17:34 -08:00
ip-l2tp.8 man: ip-l2tp.8: document UDP checksum options 2016-11-29 13:31:30 -08:00
ip-link.8.in bpf: add initial support for attaching xdp progs 2016-12-09 12:44:12 -08:00
ip-macsec.8 macsec: fix input of 'port', improve documentation of 'address' 2016-09-01 09:08:50 -07:00
ip-maddress.8 docs: make spacing consistent 2015-04-07 08:41:36 -07:00
ip-monitor.8 man: ip-*.8: drop any reference to generic ip options 2016-03-02 11:23:53 -08:00
ip-mroute.8 man: ip-*.8: drop any reference to generic ip options 2016-03-02 11:23:53 -08:00
ip-neighbour.8 ip neigh: Add support for keyword 2016-07-06 21:28:31 -07:00
ip-netconf.8 man: update netconf manual for new attributes 2016-03-21 12:15:58 -07:00
ip-netns.8 man: ip-netns.8: Clarify synopsis a bit 2016-03-02 11:23:52 -08:00
ip-ntable.8 man: ip-ntable.8: Review synopsis section 2016-03-02 11:23:52 -08:00
ip-route.8.in man: ip-route.8: Add notes about dropped IPv4 route cache 2016-12-01 10:47:11 -08:00
ip-rule.8 ip rule: add selector support 2016-10-09 19:25:59 -07:00
ip-tcp_metrics.8 iproute2: add support for tcp_metrics 2012-10-08 10:23:07 -07:00
ip-token.8 ip, token: add del command 2016-05-31 12:10:29 -07:00
ip-tunnel.8 man: ip-tunnel.8: Document missing 6rd action 2016-03-02 11:23:52 -08:00
ip-xfrm.8 man: ip-xfrm.8: Document missing parameters 2016-03-02 11:23:52 -08:00
ip.8 man: ip.8: add missing 'macsec' item to OBJECT list 2016-09-01 09:08:50 -07:00
lnstat.8 man: Spelling fixes 2015-11-23 15:39:25 -08:00
Makefile man pages: add man page for skbmod action 2016-10-12 15:21:55 -07:00
nstat.8 iproute2 - Split up manual page installation 2012-04-12 09:47:19 -07:00
routef.8 iproute2 - Split up manual page installation 2012-04-12 09:47:19 -07:00
routel.8 man8: scrub trailing whitespace 2015-11-23 15:41:37 -08:00
rtacct.8 man: rtacct: add missing TP marker 2016-07-06 21:06:33 -07:00
rtmon.8 man8: scrub trailing whitespace 2015-11-23 15:41:37 -08:00
rtpr.8 man: rtpr: Fix minor typo 2016-06-08 08:37:30 -07:00
rtstat.8 iproute2 - Split up manual page installation 2012-04-12 09:47:19 -07:00
ss.8 ss: Add support for SCTP protocol 2016-11-29 11:41:57 -08:00
tc-basic.8 tc: add a man page for basic filter 2015-10-23 15:37:26 -07:00
tc-bfifo.8 man8: scrub trailing whitespace 2015-11-23 15:41:37 -08:00
tc-bpf.8 tc: cls_bpf: handle skip_sw and skip_hw flags 2016-10-17 05:27:59 -07:00
tc-cbq-details.8 man8: scrub trailing whitespace 2015-11-23 15:41:37 -08:00
tc-cbq.8 man8: scrub trailing whitespace 2015-11-23 15:41:37 -08:00
tc-cgroup.8 tc: add a man page for cgroup filter 2015-10-23 15:37:26 -07:00
tc-choke.8 docs: make spacing consistent 2015-04-07 08:41:36 -07:00
tc-codel.8 docs: make spacing consistent 2015-04-07 08:41:36 -07:00
tc-connmark.8 tc: connmark, pedit: Rename BRANCH to CONTROL 2016-03-27 10:34:42 -07:00
tc-csum.8 man: tc-csum.8: Add an example 2016-03-27 10:34:43 -07:00
tc-drr.8 man8: scrub trailing whitespace 2015-11-23 15:41:37 -08:00
tc-ematch.8 In tc-ematch.8, remove no-op .ti requests to prevent translation warnings 2013-07-12 08:33:08 -07:00
tc-flow.8 man/man8/tc-flow.8: minor corrections 2016-07-25 08:19:25 -07:00
tc-flower.8 tc: flower: document SCTP ip_proto 2016-12-05 10:13:26 -08:00
tc-fq_codel.8 docs: make spacing consistent 2015-04-07 08:41:36 -07:00
tc-fq.8 man: fix whatis for fq 2016-01-06 10:29:06 -08:00
tc-fw.8 tc: add a man page for fw filter 2015-10-23 15:37:26 -07:00
tc-hfsc.8 iproute2: unmangle netdev/my emails in man pages (hfsc, stab) 2016-07-06 21:07:23 -07:00
tc-htb.8 man8: scrub trailing whitespace 2015-11-23 15:41:37 -08:00
tc-ife.8 man pages: update ife action to include tcindex 2016-10-12 15:09:52 -07:00
tc-matchall.8 tc: man: Add man entry for the matchall classifier. 2016-09-01 08:37:01 -07:00
tc-mirred.8 tc: m_mirred: Add support for ingress redirect/mirror 2016-10-26 11:20:47 -07:00
tc-mqprio.8 man: Spelling fixes 2015-11-23 15:39:25 -08:00
tc-nat.8 man: Add a man page for the nat action 2016-03-04 15:27:51 -08:00
tc-netem.8 man8: scrub trailing whitespace 2015-11-23 15:41:37 -08:00
tc-pedit.8 tc: connmark, pedit: Rename BRANCH to CONTROL 2016-03-27 10:34:42 -07:00
tc-pfifo_fast.8 man8: scrub trailing whitespace 2015-11-23 15:41:37 -08:00
tc-pfifo.8 iproute2 - Split up manual page installation 2012-04-12 09:47:19 -07:00
tc-pie.8 docs: make spacing consistent 2015-04-07 08:41:36 -07:00
tc-police.8 police: bug fix man page 2016-08-29 10:54:40 -07:00
tc-prio.8 man8: scrub trailing whitespace 2015-11-23 15:41:37 -08:00
tc-red.8 man8: scrub trailing whitespace 2015-11-23 15:41:37 -08:00
tc-route.8 tc: add a man page for route filter 2015-10-23 15:37:26 -07:00
tc-sfb.8 docs: make spacing consistent 2015-04-07 08:41:36 -07:00
tc-sfq.8 man8: scrub trailing whitespace 2015-11-23 15:41:37 -08:00
tc-simple.8 man: Add a man page for the simple action 2016-03-04 15:27:51 -08:00
tc-skbedit.8 actions: skbedit add support for mod-ing skb pkt_type 2016-07-06 21:15:44 -07:00
tc-stab.8 iproute2: unmangle netdev/my emails in man pages (hfsc, stab) 2016-07-06 21:07:23 -07:00
tc-tbf.8 man8: scrub trailing whitespace 2015-11-23 15:41:37 -08:00
tc-tcindex.8 tc: add a man page for tcindex filter 2015-10-23 15:37:26 -07:00
tc-tunnel_key.8 tc/act_tunnel: Introduce ip tunnel action 2016-12-02 14:12:09 -08:00
tc-u32.8 man: tc-u32: Minor syntax fix 2016-03-04 15:27:52 -08:00
tc-vlan.8 tc: m_vlan: Add vlan modify action 2016-10-09 19:11:34 -07:00
tc-xt.8 man: Add a man page for the xt action 2016-03-04 15:27:51 -08:00
tc.8 tc: updated man page to reflect GET command to retrieve a single filter. 2016-11-29 11:41:58 -08:00
tipc-bearer.8 tipc: add the ability to get UDP bearer options 2016-09-01 08:34:35 -07:00
tipc-link.8 tipc: update man page for link monitor 2016-09-20 09:13:09 -07:00
tipc-media.8 tipc: add peer remove functionality 2016-08-29 10:33:24 -07:00
tipc-nametable.8 tipc: add peer remove functionality 2016-08-29 10:33:24 -07:00
tipc-node.8 tipc: add peer remove functionality 2016-08-29 10:33:24 -07:00
tipc-peer.8 tipc: add peer remove functionality 2016-08-29 10:33:24 -07:00
tipc-socket.8 man: Syntax and warning fixes 2015-11-23 15:39:25 -08:00
tipc.8 tipc: add peer remove functionality 2016-08-29 10:33:24 -07:00