openconfig/public

ethernet flow-control config

LimeHat opened this issue · 3 comments

leaf enable-flow-control {
type boolean;
default false;
description
"Enable or disable flow control for this interface.
Ethernet flow control is a mechanism by which a receiver
may send PAUSE frames to a sender to stop transmission for
a specified time.
This setting should override auto-negotiated flow control
settings. If left unspecified, and auto-negotiate is TRUE,
flow control mode is negotiated with the peer interface.";
reference
"IEEE 802.3x";
}

Currently, enable-flow-control leaf does not specify in which direction the config is applied (tx, rx, or both).

It is common for implementations to support rx/tx granularity, e.g.:

flowcontrol receive STATE
flowcontrol send STATE
# flowcontrol send on
# flowcontrol receive on
usage: flow-control
  receive*          When this is true PAUSE frames received on this interface are accepted and processed
  transmit*         Enables/disables the sending of PAUSE frames.

cc @dplore

Agreed, there is precedent to have asymmetric flow control. FYI @atmanmehta (who investigating adding additional support for PFC)

Agreed, there is precedent to have asymmetric flow control. FYI @atmanmehta (who investigating adding additional support for PFC)

Ack. Thanks a lot for the confirmation

usage: configured-flow-control
set configured-flow-control rx-buffers (on | off) tx-buffers (on | off)