diff mbox series

[ovs-dev,v1,3/6] controller: add missing drop to loopback check table

Message ID 20230124151632.695912-4-amorenoz@redhat.com
State Accepted
Headers show
Series drop sampling: Fixes and optimizations | expand

Checks

Context Check Description
ovsrobot/apply-robot success apply and check: success
ovsrobot/github-robot-_Build_and_Test success github build: passed
ovsrobot/github-robot-_ovn-kubernetes fail github build: failed

Commit Message

Adrian Moreno Jan. 24, 2023, 3:16 p.m. UTC
From: Adrian Moreno <amorenoz@redhat.com>

The drop was implicit (using empty actions). Make it explicit and
sampled.

Fixes: a42c808f30b4 ("northd: add drop sampling")
Acked-by: Mark Michelson <mmichels@redhat.com>
Signed-off-by: Adrian Moreno <amorenoz@redhat.com>
---
 controller/physical.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/controller/physical.c b/controller/physical.c
index 4dcf44e01..cb2cddb9f 100644
--- a/controller/physical.c
+++ b/controller/physical.c
@@ -1498,6 +1498,7 @@  consider_port_binding(struct ovsdb_idl_index *sbrec_port_binding_by_name,
         if (!strcmp(binding->type, "localnet")) {
             /* do not forward traffic from localport to localnet port */
             ofpbuf_clear(ofpacts_p);
+            put_drop(debug, OFTABLE_CHECK_LOOPBACK, ofpacts_p);
             match_outport_dp_and_port_keys(&match, dp_key, port_key);
             match_set_reg_masked(&match, MFF_LOG_FLAGS - MFF_REG0,
                                  MLF_LOCALPORT, MLF_LOCALPORT);