mirror of
https://github.com/openvswitch/ovs
synced 2025-10-21 14:49:41 +00:00
ofproto: Generalize tun_id_from_cookie into flow_format.
Upcoming commits will add more flow formats, so this needs to be an enumerated type instead of a bool.
This commit is contained in:
@@ -125,6 +125,11 @@ struct nicira_header {
|
||||
};
|
||||
OFP_ASSERT(sizeof(struct nicira_header) == 16);
|
||||
|
||||
enum {
|
||||
NXFF_OPENFLOW10 = 0, /* Standard OpenFlow 1.0 compatible. */
|
||||
NXFF_TUN_ID_FROM_COOKIE = 1 /* Obtain tunnel ID from cookie. */
|
||||
};
|
||||
|
||||
struct nxt_tun_id_cookie {
|
||||
struct ofp_header header;
|
||||
uint32_t vendor; /* NX_VENDOR_ID. */
|
||||
|
Reference in New Issue
Block a user