Re: [PATCH v3 net-next] net:sched: add action inheritdsfield to skbedit

2018-06-09 Thread Marcelo Ricardo Leitner
On Sat, Jun 09, 2018 at 10:35:48PM +, Fu, Qiaobin wrote: ... > @@ -73,6 +100,7 @@ static int tcf_skbedit_init(struct net *net, struct nlattr > *nla, > struct tc_skbedit *parm; > struct tcf_skbedit *d; > u32 flags = 0, *priority = NULL, *mark = NULL, *mask = NULL; > + u64

[PATCH v3 net-next] net:sched: add action inheritdsfield to skbedit

2018-06-09 Thread Fu, Qiaobin
The new action inheritdsfield copies the field DS of IPv4 and IPv6 packets into skb->priority. This enables later classification of packets based on the DS field. v3: *Use optional flags, so that it won't break old versions of tc. *Allow users to set both SKBEDIT_F_PRIORITY and SKBEDIT_F_INHERITD