Skip to content

Commit 6fcf018

Browse files
committed
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/jesse/openvswitch
Jesse Gross says: ==================== Open vSwitch A set of updates for net-next/3.13. Major changes are: * Restructure flow handling code to be more logically organized and easier to read. * Rehashing of the flow table is moved from a workqueue to flow installation time. Before, heavy load could block the workqueue for excessive periods of time. * Additional debugging information is provided to help diagnose megaflows. * It's now possible to match on TCP flags. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
2 parents 5a6e55c + 8ddd094 commit 6fcf018

13 files changed

Lines changed: 2511 additions & 2291 deletions

File tree

‎include/uapi/linux/openvswitch.h‎

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,18 @@ enum ovs_datapath_cmd {
6363
* not be sent.
6464
* @OVS_DP_ATTR_STATS: Statistics about packets that have passed through the
6565
* datapath. Always present in notifications.
66+
* @OVS_DP_ATTR_MEGAFLOW_STATS: Statistics about mega flow masks usage for the
67+
* datapath. Always present in notifications.
6668
*
6769
* These attributes follow the &struct ovs_header within the Generic Netlink
6870
* payload for %OVS_DP_* commands.
6971
*/
7072
enum ovs_datapath_attr {
7173
OVS_DP_ATTR_UNSPEC,
72-
OVS_DP_ATTR_NAME, /* name of dp_ifindex netdev */
73-
OVS_DP_ATTR_UPCALL_PID, /* Netlink PID to receive upcalls */
74-
OVS_DP_ATTR_STATS, /* struct ovs_dp_stats */
74+
OVS_DP_ATTR_NAME, /* name of dp_ifindex netdev */
75+
OVS_DP_ATTR_UPCALL_PID, /* Netlink PID to receive upcalls */
76+
OVS_DP_ATTR_STATS, /* struct ovs_dp_stats */
77+
OVS_DP_ATTR_MEGAFLOW_STATS, /* struct ovs_dp_megaflow_stats */
7578
__OVS_DP_ATTR_MAX
7679
};
7780

@@ -84,6 +87,14 @@ struct ovs_dp_stats {
8487
__u64 n_flows; /* Number of flows present */
8588
};
8689

90+
struct ovs_dp_megaflow_stats {
91+
__u64 n_mask_hit; /* Number of masks used for flow lookups. */
92+
__u32 n_masks; /* Number of masks for the datapath. */
93+
__u32 pad0; /* Pad for future expension. */
94+
__u64 pad1; /* Pad for future expension. */
95+
__u64 pad2; /* Pad for future expension. */
96+
};
97+
8798
struct ovs_vport_stats {
8899
__u64 rx_packets; /* total packets received */
89100
__u64 tx_packets; /* total packets transmitted */
@@ -260,6 +271,7 @@ enum ovs_key_attr {
260271
OVS_KEY_ATTR_SKB_MARK, /* u32 skb mark */
261272
OVS_KEY_ATTR_TUNNEL, /* Nested set of ovs_tunnel attributes */
262273
OVS_KEY_ATTR_SCTP, /* struct ovs_key_sctp */
274+
OVS_KEY_ATTR_TCP_FLAGS, /* be16 TCP flags. */
263275

264276
#ifdef __KERNEL__
265277
OVS_KEY_ATTR_IPV4_TUNNEL, /* struct ovs_key_ipv4_tunnel */

‎net/openvswitch/Makefile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ openvswitch-y := \
99
datapath.o \
1010
dp_notify.o \
1111
flow.o \
12+
flow_netlink.o \
13+
flow_table.o \
1214
vport.o \
1315
vport-internal_dev.o \
1416
vport-netdev.o

0 commit comments

Comments
 (0)