odp-util: Remove odp_in_port from struct odp_flow_key_parms.
authorJesse Gross <jesse@kernel.org>
Thu, 9 Jun 2016 20:32:50 +0000 (13:32 -0700)
committerJesse Gross <jesse@kernel.org>
Mon, 13 Jun 2016 20:28:39 +0000 (13:28 -0700)
commit098d2a9777f0d986220d278c0095eae42eaadf21
treec7096584ef1bd8daaedcc51d960c9c1e01dabed9
parentd1d7816bec0ddc005e99df8d39c8c280ce8b4115
odp-util: Remove odp_in_port from struct odp_flow_key_parms.

When calling odp_flow_key_from_flow (or _mask), the in_port included
as part of the flow is ignored and must be explicitly passed as a
separate parameter. This is because the assumption was that the flow's
version would often be in OFP format, rather than ODP.

However, at this point all flows that are ready for serialization in
netlink format already have their in_port properly set to ODP format.
As a result, every caller needs to explicitly initialize the extra
paramter to the value that is in the flow. This switches to just use
the value in the flow to simply things and avoid the possibility of
forgetting to initialize the extra parameter.

Signed-off-by: Jesse Gross <jesse@kernel.org>
Acked-by: Daniele Di Proietto <diproiettod@vmware.com>
lib/dpif-netdev.c
lib/odp-util.c
lib/odp-util.h
lib/tnl-ports.c
ofproto/ofproto-dpif-upcall.c
tests/test-odp.c