[ovs-git] [openvswitch/ovs] c9dc05: ofproto-dpif-xlate: Fix match criteria for in-band...

Ben Pfaff noreply at github.com
Fri Jun 7 18:42:48 UTC 2019

  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: c9dc050d2078fa9b914055c89c403d44e9626307
  Author: Anju Thomas <anju.thomas at ericsson.com>
  Date:   2019-06-07 (Fri, 07 Jun 2019)

  Changed paths:
    M ofproto/ofproto-dpif-xlate.c

  Log Message:
  ofproto-dpif-xlate: Fix match criteria for in-band control rule

As part of in-band control, OVS is expected to send DHCP server replies
to the LOCAL port as well. In this case, OVS implicitly adds an
additional action to output to the bridge’s LOCAL port after the ofproto
translation for the packet is completed in the ofproto layer but before
sending the actions to datapath for installation.

However, the match criteria is unchanged and as a result all packets
(not just DHCP server replies) are also sent to the LOCAL port.

The fix is to add the IP protocol type (UDP), the UDP source and
destination ports to the match criteria so that a specific datapath flow
that matches only DHCP server replies is installed. As a result, only
DHCP server reply packets will be sent to the LOCAL port.

Signed-off-by: Anju Thomas <anju.thomas at ericsson.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>

More information about the git mailing list