On Tue, 2016-09-06 at 09:37 -0400, Jamal Hadi Salim wrote:
From: Jamal Hadi Salim <jhs@mojatatu.com>
+
+struct tcf_skbmod_params {
+ struct rcu_head rcu;
+ u64 flags; /*up to 64 types of operations; extend if needed */
+ u8 eth_dst[ETH_ALEN];
+ u16 eth_type;
+ u8 eth_src[ETH_ALEN];
+};
+
+struct tcf_skbmod {
+ struct tc_action common;
+ struct tcf_skbmod_params *skbmod_p;
struct tcf_skbmod_params __rcu *skbmod_p;
+};
Then add CONFIG_SPARSE_RCU_POINTER=y to your .config
And build/check
make C=2 M=net/sched
Thanks.