bfd: Optimize BFD for Megaflows.
authorGurucharan Shetty <gshetty@nicira.com>
Sat, 3 Aug 2013 13:46:26 +0000 (13:46 +0000)
committerGurucharan Shetty <gshetty@nicira.com>
Mon, 5 Aug 2013 20:12:40 +0000 (13:12 -0700)
commitde8d2ef9dd141f4a96d4b79afbfadb3c4eb042c7
tree46355c7d4010978ae63dab497b2aaed3e8a4e032
parentb644259ff26970b841479a4e881303ad49e81abe
bfd: Optimize BFD for Megaflows.

The current situation is that whenever any packet enters the
userspace, bfd_should_process_flow() looks at the UDP destination
port to figure out whether that is a BFD packet. This means that
UDP destination port cannot be wildcarded for all the other flows
too.

To optimize BFD for megaflows, we introduce a new
'bfd:bfd_dst_mac' field in the database. Whenever this field is set
by a controller, it is assumed that all the BFD packets to/from
this interface will have the destination mac address set as the one
specified in the bfd:bfd_dst_mac field. If this field is set, we
first look at the destination mac address of a packet and if it
does not match the mac address set in bfd:bfd_dst_mac, we do not
process that packet as bfd. If the field does match, we go ahead
and look at the UDP destination port too.

Also, change the default BFD destination mac address to
"00:23:20:00:00:01".

Feature #18850.
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
lib/bfd.c
lib/packets.h
vswitchd/vswitch.xml