dev: enable flow on primary interface 12/42912/2
authorMonendra Singh Kushwaha <[email protected]>
Tue, 18 Mar 2025 08:10:33 +0000 (13:40 +0530)
committerDamjan Marion <[email protected]>
Fri, 9 May 2025 22:03:46 +0000 (22:03 +0000)
Type: fix

Change-Id: Ic5d9390240c00aa706c4f6902c774360263455f2
Signed-off-by: Monendra Singh Kushwaha <[email protected]>
src/vnet/dev/handlers.c

index bfacbe2..ceb3ae5 100644 (file)
@@ -173,7 +173,7 @@ vnet_dev_flow_ops_fn (vnet_main_t *vnm, vnet_flow_dev_op_t op,
   if (!di)
     return VNET_FLOW_ERROR_NO_SUCH_INTERFACE;
 
-  if (di->is_primary_if)
+  if (!di->is_primary_if)
     return VNET_FLOW_ERROR_NOT_SUPPORTED;
 
   p = di->port;