X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=datapath%2Fdatapath.h;h=f28513bb7efe0ef3421045cd95ee59a864587689;hb=e6494c64e35f62411f770be086ba6a0914afaf5d;hp=8e272836e0d05964d280dd57872d784dda623212;hpb=66cd496a30819638c198c614c5502cf6fa116500;p=openvswitch diff --git a/datapath/datapath.h b/datapath/datapath.h index 8e272836..f28513bb 100644 --- a/datapath/datapath.h +++ b/datapath/datapath.h @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #include "flow.h" @@ -53,6 +54,7 @@ struct dp_stats_percpu { u64 n_hit; u64 n_missed; u64 n_lost; + seqcount_t seqlock; }; struct dp_port_group { @@ -144,6 +146,7 @@ enum csum_type { /** * struct ovs_skb_cb - OVS data in skb CB * @dp_port: The datapath port on which the skb entered the switch. + * @flow: The flow associated with this packet. May be %NULL if no flow. * @ip_summed: Consistently stores L4 checksumming status across different * kernel versions. * @tun_id: ID (in network byte order) of the tunnel that encapsulated this @@ -151,6 +154,7 @@ enum csum_type { */ struct ovs_skb_cb { struct dp_port *dp_port; + struct sw_flow *flow; enum csum_type ip_summed; __be32 tun_id; };