include: update headers from net-next

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
Stephen Hemminger 2017-08-09 08:35:26 -07:00
parent ee66d60ee8
commit 96421f92ef
2 changed files with 12 additions and 5 deletions

View File

@ -345,14 +345,20 @@ union bpf_attr {
* int bpf_redirect(ifindex, flags) * int bpf_redirect(ifindex, flags)
* redirect to another netdev * redirect to another netdev
* @ifindex: ifindex of the net device * @ifindex: ifindex of the net device
* @flags: bit 0 - if set, redirect to ingress instead of egress * @flags:
* other bits - reserved * cls_bpf:
* Return: TC_ACT_REDIRECT * bit 0 - if set, redirect to ingress instead of egress
* int bpf_redirect_map(key, map, flags) * other bits - reserved
* xdp_bpf:
* all bits - reserved
* Return: cls_bpf: TC_ACT_REDIRECT on success or TC_ACT_SHOT on error
* xdp_bfp: XDP_REDIRECT on success or XDP_ABORT on error
* int bpf_redirect_map(map, key, flags)
* redirect to endpoint in map * redirect to endpoint in map
* @map: pointer to dev map
* @key: index in map to lookup * @key: index in map to lookup
* @map: fd of map to do lookup in
* @flags: -- * @flags: --
* Return: XDP_REDIRECT on success or XDP_ABORT on error
* *
* u32 bpf_get_route_realm(skb) * u32 bpf_get_route_realm(skb)
* retrieve a dst's tclassid * retrieve a dst's tclassid

View File

@ -11,6 +11,7 @@ enum lwtunnel_encap_types {
LWTUNNEL_ENCAP_IP6, LWTUNNEL_ENCAP_IP6,
LWTUNNEL_ENCAP_SEG6, LWTUNNEL_ENCAP_SEG6,
LWTUNNEL_ENCAP_BPF, LWTUNNEL_ENCAP_BPF,
LWTUNNEL_ENCAP_SEG6_LOCAL,
__LWTUNNEL_ENCAP_MAX, __LWTUNNEL_ENCAP_MAX,
}; };