sched: act: ife: update parameters via rcu handling
This patch changes the parameter updating via RCU and not protected by a spinlock anymore. This reduce the time that the spinlock is being held. Signed-off-by: Alexander Aring <aring@mojatatu.com> Acked-by: Jamal Hadi Salim <jhs@mojatatu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
ced273eacf
commit
aa9fd9a325
@ -6,12 +6,18 @@
|
||||
#include <linux/rtnetlink.h>
|
||||
#include <linux/module.h>
|
||||
|
||||
struct tcf_ife_info {
|
||||
struct tc_action common;
|
||||
struct tcf_ife_params {
|
||||
u8 eth_dst[ETH_ALEN];
|
||||
u8 eth_src[ETH_ALEN];
|
||||
u16 eth_type;
|
||||
u16 flags;
|
||||
|
||||
struct rcu_head rcu;
|
||||
};
|
||||
|
||||
struct tcf_ife_info {
|
||||
struct tc_action common;
|
||||
struct tcf_ife_params __rcu *params;
|
||||
/* list of metaids allowed */
|
||||
struct list_head metalist;
|
||||
};
|
||||
|
Reference in New Issue
Block a user