diff options
author | Justin Pettit <jpettit@nicira.com> | 2009-11-13 11:36:02 -0800 |
---|---|---|
committer | Justin Pettit <jpettit@nicira.com> | 2010-02-20 02:22:27 -0800 |
commit | 8d9f3d567e3863f195959828fa20b5d2ed6cbbea (patch) | |
tree | ee82ca20c3cb98346253581d8df64e179b6a7cb9 /include | |
parent | ca069229880ba47ba100b62ed34c0c226355b0c6 (diff) |
ofproto: Cleanups to openflow.h (OpenFlow 0.9)
This commit cleans up a few comments in openflow.h. The only one of
significance is that OpenFlow port numbers now begin enumeration at 1.
OVS already behaved in this manner, so this is just a documentation
issue for us.
NOTE: OVS at this point is not wire-compatible with OpenFlow 0.9 until the
final commit in this OpenFlow 0.9 set.
Diffstat (limited to 'include')
-rw-r--r-- | include/openflow/openflow.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/openflow/openflow.h b/include/openflow/openflow.h index 511cdb71..1376149b 100644 --- a/include/openflow/openflow.h +++ b/include/openflow/openflow.h @@ -56,7 +56,7 @@ #define OFP_ETH_ALEN 6 /* Bytes in an Ethernet address. */ -/* Port numbering. Physical ports are numbered starting from 0. */ +/* Port numbering. Physical ports are numbered starting from 1. */ enum ofp_port { /* Maximum number of physical switch ports. */ OFPP_MAX = 0xff00, @@ -163,7 +163,8 @@ enum ofp_port_config { OFPPC_PORT_DOWN = 1 << 0, /* Port is administratively down. */ OFPPC_NO_STP = 1 << 1, /* Disable 802.1D spanning tree on port. */ - OFPPC_NO_RECV = 1 << 2, /* Drop most packets received on port. */ + OFPPC_NO_RECV = 1 << 2, /* Drop all packets except 802.1D + spanning tree packets. */ OFPPC_NO_RECV_STP = 1 << 3, /* Drop received 802.1D STP packets. */ OFPPC_NO_FLOOD = 1 << 4, /* Do not include this port when flooding. */ OFPPC_NO_FWD = 1 << 5, /* Drop packets forwarded to port. */ @@ -445,7 +446,7 @@ enum ofp_flow_mod_command { /* Flow wildcards. */ enum ofp_flow_wildcards { OFPFW_IN_PORT = 1 << 0, /* Switch input port. */ - OFPFW_DL_VLAN = 1 << 1, /* VLAN. */ + OFPFW_DL_VLAN = 1 << 1, /* VLAN vid. */ OFPFW_DL_SRC = 1 << 2, /* Ethernet source address. */ OFPFW_DL_DST = 1 << 3, /* Ethernet destination address. */ OFPFW_DL_TYPE = 1 << 4, /* Ethernet frame type. */ |