diff options
author | Daniele Di Proietto <ddiproietto@vmware.com> | 2014-07-22 17:06:23 -0700 |
---|---|---|
committer | Pravin B Shelar <pshelar@nicira.com> | 2014-07-22 20:06:06 -0700 |
commit | e9fe2381ec863f85eb766ed5d309e22146d2fb04 (patch) | |
tree | 12e280cf9a3875d622d69a39db3b08859111c2dd | |
parent | 3a10026527a9ed8bee6a5f0b218b406c10650290 (diff) | |
download | openvswitch-e9fe2381ec863f85eb766ed5d309e22146d2fb04.tar.gz |
dpif-netdev: Reduce netdev_flow_key size
struct 'miniflow' already contains MINI_N_INLINE values, therefore
we can save few bytes in netdev_flow_key.
Signed-off-by: Daniele Di Proietto <ddiproietto@vmware.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
-rw-r--r-- | lib/dpif-netdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index cfd75394b..cad8c7a71 100644 --- a/lib/dpif-netdev.c +++ b/lib/dpif-netdev.c @@ -205,7 +205,7 @@ struct dp_netdev_port { /* There are fields in the flow structure that we never use. Therefore we can * save a few words of memory */ -#define NETDEV_KEY_BUF_SIZE_U32 (FLOW_U32S \ +#define NETDEV_KEY_BUF_SIZE_U32 (FLOW_U32S - MINI_N_INLINE \ - FLOW_U32_SIZE(regs) \ - FLOW_U32_SIZE(metadata) \ ) |