mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
openvswitch: Add support for OVS_FLOW_ATTR_PROBE.
This new flag is useful for suppressing error logging while probing for datapath features using flow commands. For backwards compatibility reasons the commands are executed normally, but error logging is suppressed. Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com> Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
This commit is contained in:
parent
12eb18f711
commit
05da5898a9
7 changed files with 208 additions and 168 deletions
|
@ -199,9 +199,9 @@ void ovs_dp_notify_wq(struct work_struct *work);
|
|||
int action_fifos_init(void);
|
||||
void action_fifos_exit(void);
|
||||
|
||||
#define OVS_NLERR(fmt, ...) \
|
||||
#define OVS_NLERR(logging_allowed, fmt, ...) \
|
||||
do { \
|
||||
if (net_ratelimit()) \
|
||||
pr_info("netlink: " fmt, ##__VA_ARGS__); \
|
||||
if (logging_allowed && net_ratelimit()) \
|
||||
pr_info("netlink: " fmt "\n", ##__VA_ARGS__); \
|
||||
} while (0)
|
||||
#endif /* datapath.h */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue