summaryrefslogtreecommitdiff
path: root/lib/cfm.c
diff options
context:
space:
mode:
authorGurucharan Shetty <gshetty@nicira.com>2013-08-03 13:46:26 +0000
committerGurucharan Shetty <gshetty@nicira.com>2013-08-05 13:12:40 -0700
commitde8d2ef9dd141f4a96d4b79afbfadb3c4eb042c7 (patch)
tree46355c7d4010978ae63dab497b2aaed3e8a4e032 /lib/cfm.c
parentb644259ff26970b841479a4e881303ad49e81abe (diff)
downloadopenvswitch-de8d2ef9dd141f4a96d4b79afbfadb3c4eb042c7.tar.gz
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>
Diffstat (limited to 'lib/cfm.c')
0 files changed, 0 insertions, 0 deletions