diff options
| author | Ben Pfaff <blp@nicira.com> | 2011-01-08 16:00:41 -0800 |
|---|---|---|
| committer | Ben Pfaff <blp@nicira.com> | 2011-01-27 21:08:40 -0800 |
| commit | c75d4dcf957f617b40ca89546545f075e2631226 (patch) | |
| tree | 445bde1a6230274029396715683736d6b7cc58e0 /lib/odp-util.h | |
| parent | f7cd0081f525dd1d45fafc68397b5393196e978d (diff) | |
| download | openvswitch-c75d4dcf957f617b40ca89546545f075e2631226.tar.gz | |
datapath: Get rid of ODPP_NONE.
This definition wasn't actually useful for the kernel--the only place that
it was used it didn't really have to be, so this commit removes it from
datapath-protocol.h. It is still marginally useful in userspace, at least
as a value that converts to and from OpenFlow port number OFPP_NONE, so
move it to odp-util.c.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'lib/odp-util.h')
| -rw-r--r-- | lib/odp-util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/odp-util.h b/lib/odp-util.h index a7c0982a7..1a0d58df6 100644 --- a/lib/odp-util.h +++ b/lib/odp-util.h @@ -30,6 +30,8 @@ struct ds; struct flow; struct ofpbuf; +#define ODPP_NONE ((uint16_t) -1) + static inline uint16_t ofp_port_to_odp_port(uint16_t ofp_port) { |
