mirror of
https://github.com/openvswitch/ovs
synced 2025-08-30 22:05:19 +00:00
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>
This commit is contained in:
committed by
Pravin B Shelar
parent
3a10026527
commit
e9fe2381ec
@@ -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) \
|
||||
)
|
||||
|
Reference in New Issue
Block a user