This patchset adds two enhancements to the Open vSwitch masks cache.
Signed-off-by: Eelco Chaudron <[email protected]>
Changes in v4 [patch 2/2 only]:
- Remove null check before calling free_percpu()
- Make ovs_dp_change() return appropriate error codes
Changes in v3 [patch 2/2 only]:
- Use is_power_of_2() function
- Use array_size() function
- Fix remaining sparse errors
Changes in v2 [patch 2/2 only]:
- Fix sparse warnings
- Fix netlink policy items reported by Florian Westphal
Eelco Chaudron (2):
net: openvswitch: add masks cache hit counter
net: openvswitch: make masks cache size configurable
include/uapi/linux/openvswitch.h | 3 +
net/openvswitch/datapath.c | 22 +++++++
net/openvswitch/datapath.h | 3 +
net/openvswitch/flow_table.c | 120 ++++++++++++++++++++++++++++++++------
net/openvswitch/flow_table.h | 13 +++-
5 files changed, 139 insertions(+), 22 deletions(-)
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev