[ovs-build] Passed: ovsrobot/ovn#134 (series_130902 - 194571f)
Travis CI
builds at travis-ci.com
Mon Sep 16 18:36:14 UTC 2019
Build Update for ovsrobot/ovn
-------------------------------------
Build: #134
Status: Passed
Duration: 34 mins and 0 secs
Commit: 194571f (series_130902)
Author: Numan Siddique
Message: Learn the mac binding only if required
OVN has the actions - put_arp and put_nd to learn the mac bindings from the
ARP/ND packets. These actions update the Southbound MAC_Binding table.
These actions translates to controller actions. Whenever pinctrl thread
receives such packets, it wakes up the main ovn-controller thread.
If the MAC_Binding table is already upto date, this results
in unnecessary CPU cyles. There are some security implications as well.
A rogue VM can flood broadcast ARP request/reply packets and this
could cause DoS issues. A physical switch may send periodic GARPs
and these packets hit ovn-controllers.
This patch solves these problems by learning the mac bindings only if
required. There is no need to apply the put_arp/put_nd action if the
Southbound MAC_Binding row is upto date.
New actions - lookup_arp and lookup_nd are added which looks up the
IP, MAC pair in the mac_binding table and stores the result in a
register. 1 if lookup is successful, 0 otherwise.
ovn-northd adds 2 new stages - lookup_arp and put_arp before ip_input
in the router ingress pipeline.
The logical flows looks something like:
table=1 (lr_in_lookup_arp), priority=100 , match=(arp),
reg9[4] = lookup_arp(inport, arp.spa, arp.sha); next;)
table=1 (lr_in_lookup_arp), priority=0 , match=(1), action=(next;)
...
table=2 (lr_in_put_arp ), priority=100 ,
match=(arp.op == 2 && reg9[4] == 0),
action=(put_arp(inport, arp.spa, arp.sha);)
table=2 (lr_in_put_arp ), priority=90 , match=(arp.op == 2), action=(drop;)
table=2 (lr_in_put_arp ), priority=0 , match=(1), action=(next;)
The lflow module of ovn-controller adds OF flows in table 31 (OFTABLE_MAC_LOOKUP)
for each mac_binding entry with the match reg0 = ip && eth.src = mac with
the action - load:1->reg2[0]
Eg:
table=31, priority=100,arp,reg0=0xaca8006f,reg14=0x3,metadata=0x3,dl_src=00:44:00:00:00:04
actions=load:1->NXM_NX_REG2[0]
This patch should also address the issue reported in 'Reported-at'
Reported-at: https://bugzilla.redhat.com/1729846
Reported-by: Haidong Li <haili at redhat.com>
CC: Han ZHou <hzhou8 at ebay.com>
CC: Dumitru Ceara <dceara at redhat.com>
Tested-by: Dumitru Ceara <dceara at redhat.com>
Signed-off-by: Numan Siddique <nusiddiq at redhat.com>
Signed-off-by: 0-day Robot <robot at bytheb.org>
View the changeset: https://github.com/ovsrobot/ovn/compare/e10698e66b80^...194571f8708c
View the full build log and details: https://travis-ci.com/ovsrobot/ovn/builds/127885587?utm_medium=notification&utm_source=email
--
You can unsubscribe from build emails from the ovsrobot/ovn repository going to https://travis-ci.com/account/preferences/unsubscribe?repository=9136199&utm_medium=notification&utm_source=email.
Or unsubscribe from *all* email updating your settings at https://travis-ci.com/account/preferences/unsubscribe?utm_medium=notification&utm_source=email.
Or configure specific recipients for build notifications in your .travis.yml file. See https://docs.travis-ci.com/user/notifications.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-build/attachments/20190916/9b49b833/attachment.html>
More information about the build
mailing list