aboutsummaryrefslogtreecommitdiffstats
path: root/net/openvswitch/datapath.h
diff options
context:
space:
mode:
authorJarno Rajahalme <jrajahalme@nicira.com>2014-11-06 10:03:05 -0500
committerPravin B Shelar <pshelar@nicira.com>2014-11-09 21:58:44 -0500
commit05da5898a96c05e32aa9850c9cd89eef29471b13 (patch)
tree5a61db15001bea6fa41f376c6005894776e5ead4 /net/openvswitch/datapath.h
parent12eb18f7115884b0c1513dda31b0051121116b3a (diff)
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>
Diffstat (limited to 'net/openvswitch/datapath.h')
-rw-r--r--net/openvswitch/datapath.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/openvswitch/datapath.h b/net/openvswitch/datapath.h
index 8389c1d68e57..3ece94563079 100644
--- a/net/openvswitch/datapath.h
+++ b/net/openvswitch/datapath.h
@@ -199,9 +199,9 @@ void ovs_dp_notify_wq(struct work_struct *work);
199int action_fifos_init(void); 199int action_fifos_init(void);
200void action_fifos_exit(void); 200void action_fifos_exit(void);
201 201
202#define OVS_NLERR(fmt, ...) \ 202#define OVS_NLERR(logging_allowed, fmt, ...) \
203do { \ 203do { \
204 if (net_ratelimit()) \ 204 if (logging_allowed && net_ratelimit()) \
205 pr_info("netlink: " fmt, ##__VA_ARGS__); \ 205 pr_info("netlink: " fmt "\n", ##__VA_ARGS__); \
206} while (0) 206} while (0)
207#endif /* datapath.h */ 207#endif /* datapath.h */