datapath: Use DP_MAX_PORTS when no IN_PORT attribute is present.
authorJesse Gross <jesse@nicira.com>
Tue, 9 Jul 2013 21:21:26 +0000 (14:21 -0700)
committerJesse Gross <jesse@nicira.com>
Tue, 9 Jul 2013 22:31:02 +0000 (15:31 -0700)
commit861687d4a5096ca009f08da5d6779ff6d01fbba3
tree92c92f13798b218d2f81d9c77ffb9fb001cf0304
parent25a27ba07c1acbda03c3ff08bf78e2921b48c90b
datapath: Use DP_MAX_PORTS when no IN_PORT attribute is present.

To indicate that a flow is not associated with any particular in port,
userspace may omit the IN_PORT attribute, which the kernel translates
internally to the special value DP_MAX_PORTS. After the megaflows
changes, this was no longer being done, resulting in it using port 0
(the internal port).

This also adopts a wildcarding scheme similar to 802.2 packets where
a mask can be specified for this non-existent key attribute but it
must either be completely wildcarded or completely exact match.

CC: Andy Zhou <azhou@nicira.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
datapath/flow.c