[ovs-dev] [PATCH] dpif-provider: Use ODPP_NONE in dp_netdev_flow_add()

Simon Horman horms at verge.net.au
Fri Nov 11 13:31:07 UTC 2016


From: Simon Horman <simon.horman at netronome.com>

This appears to be the only place where ODPP_NONE is not used but could be.

Signed-off-by: Simon Horman <simon.horman at netronome.com>
---
 lib/dpif-netdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c
index 66ba2c02b3f8..eab849fc7ba1 100644
--- a/lib/dpif-netdev.c
+++ b/lib/dpif-netdev.c
@@ -2263,7 +2263,7 @@ dp_netdev_flow_add(struct dp_netdev_pmd_thread *pmd,
     netdev_flow_key_init_masked(&flow->cr.flow, &match->flow, &mask);
 
     /* Select dpcls for in_port. Relies on in_port to be exact match */
-    ovs_assert(match->wc.masks.in_port.odp_port == ODP_PORT_C(UINT32_MAX));
+    ovs_assert(match->wc.masks.in_port.odp_port == ODPP_NONE);
     cls = dp_netdev_pmd_find_dpcls(pmd, in_port);
     dpcls_insert(cls, &flow->cr, &mask);
 
-- 
2.7.0.rc3.207.g0ac5344



More information about the dev mailing list