diff options
author | Pravin B Shelar <pshelar@nicira.com> | 2012-02-16 17:12:36 -0800 |
---|---|---|
committer | Pravin B Shelar <pshelar@nicira.com> | 2012-02-16 17:12:36 -0800 |
commit | 95b1d73a4a6944a44c028b771a339d2971d93071 (patch) | |
tree | 20097313f0c67906bed245952d3221068a157641 /datapath/flow.h | |
parent | fe0731b10011075ab40960e13eb2ae5f39771e90 (diff) |
datapath: Increase maximum number of datapath ports.
Use hash table to store ports of datapath. Allow 64K ports per switch.
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
Bug #2462
Diffstat (limited to 'datapath/flow.h')
-rw-r--r-- | datapath/flow.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/datapath/flow.h b/datapath/flow.h index 61310d06..5261fa84 100644 --- a/datapath/flow.h +++ b/datapath/flow.h @@ -44,7 +44,7 @@ struct sw_flow_key { struct { __be64 tun_id; /* Encapsulating tunnel ID. */ u32 priority; /* Packet QoS priority. */ - u16 in_port; /* Input switch port (or USHRT_MAX). */ + u16 in_port; /* Input switch port (or DP_MAX_PORTS). */ } phy; struct { u8 src[ETH_ALEN]; /* Ethernet source address. */ @@ -168,6 +168,7 @@ int ovs_flow_from_nlattrs(struct sw_flow_key *swkey, int *key_lenp, int ovs_flow_metadata_from_nlattrs(u32 *priority, u16 *in_port, __be64 *tun_id, const struct nlattr *); +#define MAX_ACTIONS_BUFSIZE (16 * 1024) #define TBL_MIN_BUCKETS 1024 struct flow_table { |