diff options
author | Sugesh Chandran <sugesh.chandran@intel.com> | 2016-07-28 16:30:12 +0100 |
---|---|---|
committer | Daniele Di Proietto <diproiettod@vmware.com> | 2016-07-29 17:56:32 -0700 |
commit | 9fd39370c12c5d894ac3098575b9c4e78ebb43c2 (patch) | |
tree | ac2b9b4cbafa3333bfce6983f1208e03ed730363 /vswitchd/vswitch.xml | |
parent | 5a27991d1a2738abba89e19bc51985e54812515b (diff) | |
download | openvswitch-9fd39370c12c5d894ac3098575b9c4e78ebb43c2.tar.gz |
netdev-dpdk: Add Flow Control support.
Add support for flow-control(mac control frame) to DPDK enabled physical
port types. By default, the flow-control is OFF on both rx and tx side.
The flow control can be enabled/disabled either when adding a port to OVS
or at run time.
For eg:
To enable flow control support at tx side while adding a port, add the
'tx-flow-ctrl' option to the 'ovs-vsctl add-port' command-line as below.
'ovs-vsctl add-port br0 dpdk0 -- \
set Interface dpdk0 type=dpdk options:tx-flow-ctrl=true'
Similarly to enable rx flow control,
'ovs-vsctl add-port br0 dpdk0 -- \
set Interface dpdk0 type=dpdk options:rx-flow-ctrl=true'
And to enable the flow control auto-negotiation,
'ovs-vsctl add-port br0 dpdk0 -- \
set Interface dpdk0 type=dpdk options:flow-ctrl-autoneg=true'
To turn ON the tx flow control at run time(After the port is being added
to OVS), the command-line input will be,
'ovs-vsctl set Interface dpdk0 options:tx-flow-ctrl=true'
The flow control parameters can be turned off by setting 'false' to the
respective parameter. To dsiable the flow control at tx side,
'ovs-vsctl set Interface dpdk0 options:tx-flow-ctrl=false'
Signed-off-by: Sugesh Chandran <sugesh.chandran@intel.com>
Acked-by: Bhanuprakash Bodireddy <Bhanuprakash.bodireddy@intel.com>
Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
Diffstat (limited to 'vswitchd/vswitch.xml')
-rw-r--r-- | vswitchd/vswitch.xml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/vswitchd/vswitch.xml b/vswitchd/vswitch.xml index f0e138110..65acdc767 100644 --- a/vswitchd/vswitch.xml +++ b/vswitchd/vswitch.xml @@ -3146,6 +3146,30 @@ </column> </group> + <group title="Flow control Configuration"> + <p> + Ethernet flow control defined in IEEE 802.1Qbb provides link level flow + control using MAC pause frames. Implemented only for interfaces with + type <code>dpdk</code>. + </p> + + <column name="options" key="rx-flow-ctrl" type='{"type": "boolean"}'> + Set to <code>true</code> to enable Rx flow control on physical ports. + By default, Rx flow control is disabled. + </column> + + <column name="options" key="tx-flow-ctrl" type='{"type": "boolean"}'> + Set to <code>true</code> to enable Tx flow control on physical ports. + By default, Tx flow control is disabled. + </column> + + <column name="options" key="flow-ctrl-autoneg" + type='{"type": "boolean"}'> + Set to <code>true</code> to enable flow control auto negotiation on + physical ports. By default, auto-neg is disabled. + </column> + </group> + <group title="Common Columns"> The overall purpose of these columns is described under <code>Common Columns</code> at the beginning of this document. |