Re: [net-next PATCH 3/5] Support to encoding decoding skb prio on IFE action

2016-02-22 Thread Daniel Borkmann
On 02/22/2016 02:21 PM, Jamal Hadi Salim wrote: From: Jamal Hadi Salim [...] +static int skbprio_check(struct sk_buff *skb, struct tcf_meta_info *e) +{ + return check_meta_u32(skb->priority, e); +} + +static int skbprio_encode(struct sk_buff *skb, void *skbdata, +

[net-next PATCH 3/5] Support to encoding decoding skb prio on IFE action

2016-02-22 Thread Jamal Hadi Salim
From: Jamal Hadi Salim Example usage: Set the skb priority using skbedit then allow it to be encoded sudo tc qdisc add dev $ETH root handle 1: prio sudo tc filter add dev $ETH parent 1: protocol ip prio 10 \ u32 match ip protocol 1 0xff flowid 1:2 \