diff options
author | Justin Pettit <jpettit@nicira.com> | 2013-06-17 18:07:33 -0700 |
---|---|---|
committer | Justin Pettit <jpettit@nicira.com> | 2013-06-17 21:57:29 -0700 |
commit | 642dc74ddb13bf0a0948c3ca0013bd62f8074a9f (patch) | |
tree | 2ae9323b12fc7795a695bf738b22607febd888aa /lib/bfd.c | |
parent | db7d4e469903adf1cbf05c9cd70b9eb77946c202 (diff) | |
download | openvswitch-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.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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)); |