diff options
author | Pravin B Shelar <pshelar@ovn.org> | 2016-07-17 09:52:11 -0700 |
---|---|---|
committer | Pravin B Shelar <pshelar@ovn.org> | 2016-07-17 10:25:09 -0700 |
commit | 8ce3733975d3c55368c03a81f3f58e35875a6507 (patch) | |
tree | 34c9f4cef8dee1a5d5a1812f62ff123985e8038b /datapath/datapath.h | |
parent | 89be7da8d739a36d0d10d1bd53743068143c6f8a (diff) | |
download | openvswitch-8ce3733975d3c55368c03a81f3f58e35875a6507.tar.gz |
datapath: backport: ovs: propagate per dp max headroom to all vports
Upstream commit:
commit 3a927bc7cf9d0fbe8f4a8189dd5f8440228f64e7
Author: Paolo Abeni <pabeni@redhat.com>
ovs: propagate per dp max headroom to all vports
This patch implements bookkeeping support to compute the maximum
headroom for all the devices in each datapath. When said value
changes, the underlying devs are notified via the
ndo_set_rx_headroom method.
This also increases the internal vports xmit performance.
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Pravin B Shelar <pshelar@ovn.org>
Acked-by: Jesse Gross <jesse@kernel.org>
Diffstat (limited to 'datapath/datapath.h')
-rw-r--r-- | datapath/datapath.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/datapath/datapath.h b/datapath/datapath.h index f1607ab22..22bbaac4b 100644 --- a/datapath/datapath.h +++ b/datapath/datapath.h @@ -69,6 +69,8 @@ struct dp_stats_percpu { * ovs_mutex and RCU. * @stats_percpu: Per-CPU datapath statistics. * @net: Reference to net namespace. + * @max_headroom: the maximum headroom of all vports in this datapath; it will + * be used by all the internal vports in this dp. * * Context: See the comment on locking at the top of datapath.c for additional * locking information. @@ -90,6 +92,8 @@ struct datapath { possible_net_t net; u32 user_features; + + u32 max_headroom; }; /** |