summaryrefslogtreecommitdiff
path: root/ofproto/ofproto-dpif.h
diff options
context:
space:
mode:
authorJarno Rajahalme <jarno@ovn.org>2016-09-13 14:46:16 -0700
committerJarno Rajahalme <jarno@ovn.org>2016-09-13 15:02:09 -0700
commitb9320e5120c930139462db7a95dabf840b497aa1 (patch)
treee35d2d70cb39dc35d0702f7c561447668a03a722 /ofproto/ofproto-dpif.h
parent30d0452c5e35f0d01cc3969c0f00c2eaf0fb5503 (diff)
downloadopenvswitch-b9320e5120c930139462db7a95dabf840b497aa1.tar.gz
connmgr: Make connmgr_wants_packet_in_on_miss() lock-free.
Make connmgr_wants_packet_in_on_miss() use an atomic int instead of a list traversal taking the 'ofproto_mutex'. This allows connmgr_wants_packet_in_on_miss() to be called also when 'ofproto_mutex' is already held, and makes it faster, too. Remove unused ofproto_dpif_wants_packet_in_on_miss(). Signed-off-by: Jarno Rajahalme <jarno@ovn.org> Acked-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'ofproto/ofproto-dpif.h')
-rw-r--r--ofproto/ofproto-dpif.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/ofproto/ofproto-dpif.h b/ofproto/ofproto-dpif.h
index a3b1d6bf6..f912f6ec2 100644
--- a/ofproto/ofproto-dpif.h
+++ b/ofproto/ofproto-dpif.h
@@ -156,7 +156,6 @@ int ofproto_dpif_execute_actions__(struct ofproto_dpif *, const struct flow *,
struct dp_packet *);
void ofproto_dpif_send_async_msg(struct ofproto_dpif *,
struct ofproto_async_msg *);
-bool ofproto_dpif_wants_packet_in_on_miss(struct ofproto_dpif *);
int ofproto_dpif_send_packet(const struct ofport_dpif *, bool oam,
struct dp_packet *);
void ofproto_dpif_flow_mod(struct ofproto_dpif *,