On Mon, Jul 10, 2023 at 11:13 PM Simon Jones <batmanu...@gmail.com> wrote: > > From: simon <batmanu...@gmail.com> > > Fix bug of ovs-tcpdump, which will cause megaflow action wrong. > > As use ovs-tcpdump will add mipxxx NIC, and this NIC has IPv6 address by > default. > For vxlan topology, mipxxx will be treated as tunnel port, and will got > error actions. > > For detail discuss, refer: > https://github.com/batmancn/github-work/blob/main/ovs-bugfix-ovs-tcpdump.md > > Signed-off-by: simon <batmanu...@gmail.com>
I was able to confirm a variety of strange behaviours with these autoconf IPv6 addresses in a vxlan setup. And this patch fixed those issues. Acked-by: Mike Pattrick <m...@redhat.com> > --- > utilities/ovs-tcpdump.in | 4 ++++ > 1 file changed, 4 insertions(+) > diff --git a/utilities/ovs-tcpdump.in b/utilities/ovs-tcpdump.in > index 420c11eb8..4cbd9a5d3 100755 > --- a/utilities/ovs-tcpdump.in > +++ b/utilities/ovs-tcpdump.in > @@ -96,6 +96,10 @@ def _install_dst_if_linux(tap_name, mtu_value=None): > *(['ip', 'link', 'set', 'dev', str(tap_name), 'up'])) > pipe.wait() > > + pipe = _doexec( > + *(['ip', '-6', 'addr', 'flush', 'dev', str(tap_name)])) > + pipe.wait() > + > > def _remove_dst_if_linux(tap_name): > _doexec( > _______________________________________________ > dev mailing list > d...@openvswitch.org > https://mail.openvswitch.org/mailman/listinfo/ovs-dev > _______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev