mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
openvswitch: Move MASKED* macros to datapath.h
This will allow the ovs-conntrack code to reuse these macros. Signed-off-by: Joe Stringer <joestringer@nicira.com> Acked-by: Thomas Graf <tgraf@suug.ch> Acked-by: Pravin B Shelar <pshelar@nicira.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
8e2fed1c0c
commit
be26b9a88f
2 changed files with 29 additions and 27 deletions
|
@ -200,6 +200,10 @@ void ovs_dp_notify_wq(struct work_struct *work);
|
|||
int action_fifos_init(void);
|
||||
void action_fifos_exit(void);
|
||||
|
||||
/* 'KEY' must not have any bits set outside of the 'MASK' */
|
||||
#define OVS_MASKED(OLD, KEY, MASK) ((KEY) | ((OLD) & ~(MASK)))
|
||||
#define OVS_SET_MASKED(OLD, KEY, MASK) ((OLD) = OVS_MASKED(OLD, KEY, MASK))
|
||||
|
||||
#define OVS_NLERR(logging_allowed, fmt, ...) \
|
||||
do { \
|
||||
if (logging_allowed && net_ratelimit()) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue