[ovs-git] [openvswitch/ovs] 91eb0b: netdev-linux: Report netdev change events when mac...
GitHub
noreply at github.com
Mon Feb 5 17:39:08 UTC 2018
Branch: refs/heads/branch-2.9
Home: https://github.com/openvswitch/ovs
Commit: 91eb0b1aab2f0b4dccfccf11bfb955d2efa638be
https://github.com/openvswitch/ovs/commit/91eb0b1aab2f0b4dccfccf11bfb955d2efa638be
Author: Tonghao Zhang <xiangxia.m.yue at gmail.com>
Date: 2018-02-05 (Mon, 05 Feb 2018)
Changed paths:
M lib/netdev-linux.c
M lib/netlink-notifier.c
M lib/netlink-notifier.h
M lib/rtnetlink.c
M lib/rtnetlink.h
Log Message:
-----------
netdev-linux: Report netdev change events when mac changed.
When mac addr of ports on bridge has been changed, for example,
$ ip link set dev eth0 address 00:11:22:33:44:55
we should reconfigure the datapath id and mac addr of local port.
But now openvswitch dont do that as expected.
A simple example of how to reproduce it:
$ ovs-vsctl add-br br0
$ ifconfig br0 # for example, mac is c6:c6:d7:46:b4:4b
$ ip link set dev br0 address 00:11:22:33:44:55
$ ifconfig br0 # mac of br0 will be 00:11:22:33:44:55
then repeat:
$ ip link set dev br0 address 00:11:22:33:44:55
$ ifconfig br0 # mac of br0 will be c6:c6:d7:46:b4:4b
This patch reports the mac changed event when ports changed, then
openvswitch will reconfigure the datapath id and mac addr of local
port.
Signed-off-by: Tonghao Zhang <xiangxia.m.yue at gmail.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>
More information about the git
mailing list