[ovs-git] [openvswitch/ovs] db54e9: bridge: Allow manual notifications about interface...

Eelco Chaudron noreply at github.com
Wed Dec 18 00:27:56 UTC 2019

  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: db54e9672052db9c45f84d89454104eb2fedfb02
  Author: Ilya Maximets <i.maximets at ovn.org>
  Date:   2019-12-18 (Wed, 18 Dec 2019)

  Changed paths:
    M lib/automake.mk
    A lib/if-notifier-manual.c
    M lib/if-notifier.h
    M vswitchd/bridge.c

  Log Message:
  bridge: Allow manual notifications about interfaces' updates.

Sometimes interface updates could happen in a way ifnotifier is not
able to catch.  For example some heavy operations (device reset) in
netdev-dpdk could require re-applying of the bridge configuration.

For this purpose new manual notifier introduced. Its function
'if_notifier_manual_report()' could be called directly by the code
that aware about changes.  This new notifier is thread-safe.

Signed-off-by: Ilya Maximets <i.maximets at ovn.org>
Acked-by: Eelco Chaudron <echaudro at redhat.com>

  Commit: 988fd46391495e1ff92fa0d81204ae712e89ef9d
  Author: Eelco Chaudron <echaudro at redhat.com>
  Date:   2019-12-18 (Wed, 18 Dec 2019)

  Changed paths:
    M lib/netdev-dpdk.c

  Log Message:
  netdev-dpdk: add support for the RTE_ETH_EVENT_INTR_RESET event.

Currently, OVS does not register and therefore not handle the
interface reset event from the DPDK framework. This would cause a
problem in cases where a VF is used as an interface, and its
configuration changes.

As an example in the following scenario the MAC change is not
detected/acted upon until OVS is restarted without the patch applied:

  $ echo 1 > /sys/bus/pci/devices/0000:05:00.1/sriov_numvfs
  $ ovs-vsctl add-port ovs_pvp_br0 dpdk0 -- \
            set Interface dpdk0 type=dpdk -- \
            set Interface dpdk0 options:dpdk-devargs=0000:05:0a.0

  $ ip link set p5p2 vf 0 mac 52:54:00:92:d3:33

Signed-off-by: Eelco Chaudron <echaudro at redhat.com>
Signed-off-by: Ilya Maximets <i.maximets at ovn.org>

Compare: https://github.com/openvswitch/ovs/compare/bd6da4ab3719...988fd4639149

More information about the git mailing list