summaryrefslogtreecommitdiff
path: root/lib/bfd.c
diff options
context:
space:
mode:
authorJustin Pettit <jpettit@nicira.com>2013-06-17 18:07:33 -0700
committerJustin Pettit <jpettit@nicira.com>2013-06-17 21:57:29 -0700
commit642dc74ddb13bf0a0948c3ca0013bd62f8074a9f (patch)
tree2ae9323b12fc7795a695bf738b22607febd888aa /lib/bfd.c
parentdb7d4e469903adf1cbf05c9cd70b9eb77946c202 (diff)
downloadopenvswitch-642dc74ddb13bf0a0948c3ca0013bd62f8074a9f.tar.gz
ofproto-dpif: Don't wildcard fields used in special processing.
A number of fields are looked at when determining whether special processing (slow-path) is needed. This commit removes wildcarding when they were consulted. Reported-by: Ethan Jackson <ethan@nicira.com> Reported-by: Paul Ingram <paul@nicira.com> Signed-off-by: Justin Pettit <jpettit@nicira.com>
Diffstat (limited to 'lib/bfd.c')
-rw-r--r--lib/bfd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/bfd.c b/lib/bfd.c
index 9f671f2e8..ddf8c4cba 100644
--- a/lib/bfd.c
+++ b/lib/bfd.c
@@ -414,8 +414,11 @@ bfd_put_packet(struct bfd *bfd, struct ofpbuf *p,
}
bool
-bfd_should_process_flow(const struct flow *flow)
+bfd_should_process_flow(const struct flow *flow, struct flow_wildcards *wc)
{
+ memset(&wc->masks.dl_type, 0xff, sizeof wc->masks.dl_type);
+ memset(&wc->masks.nw_proto, 0xff, sizeof wc->masks.nw_proto);
+ memset(&wc->masks.tp_dst, 0xff, sizeof wc->masks.tp_dst);
return (flow->dl_type == htons(ETH_TYPE_IP)
&& flow->nw_proto == IPPROTO_UDP
&& flow->tp_dst == htons(3784));