]> git.proxmox.com Git - mirror_ovs.git/commit
ofproto-dpif-xlate: Prevent duplicating of traffic to a mirror port
authorDmytro Linkin <dmitrolin@mellanox.com>
Tue, 3 Dec 2019 14:11:21 +0000 (16:11 +0200)
committerBen Pfaff <blp@ovn.org>
Tue, 3 Dec 2019 18:31:54 +0000 (10:31 -0800)
commit84dd881bb5be74b16b6177889394e99a49f6be90
treeed48ae002a17d02aa89c0f535b402dfdc174c3e4
parenta7f33fdbfb67a7b3f6cc24c6eab88b33fc815363
ofproto-dpif-xlate: Prevent duplicating of traffic to a mirror port

Currently ofproto design disallow duplicating output packet on forwarding
and mirroring to/from same ovs port. Next scenario reveal lack of design:
1. Send ping between regular ovs ports (VFs, for ex.), stop it.
2. While rule still exist, make mirror for one of the ports.
Prevent duplicating of traffic to a mirror port.

Fixes: 86e2dcddce85 ("dpif-xlate: Snoop multicast packets and send them properly")
Signed-off-by: Dmytro Linkin <dmitrolin@mellanox.com>
Acked-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
ofproto/ofproto-dpif-xlate.c