[brussels-dev] [driver-discuss] [sysadmin-discuss] [networking-discuss] pausel bits setting within Solaris

Peter Memishian peter.memishian at Sun.COM
Fri Aug 17 15:10:19 PDT 2007


[ CC list trimmed. ]

 > 1. what is the command like?
 >    For example, 
 >    dladm set-linkprop -p mac_flowctrl={rx,tx,bi,no} -i bge0
 > 
 >    rx: it means we could receive incoming pause frames from
 >        peer
 >    tx: it means we could transmit pause frames to peer
 >    bi: it means we could both receive and transmit pause
 >        frames from/to peer
 >    no: it means we don't have flow control enabled. We will
 >        not respond to pause frames incoming and will not send
 >        out pause frames when congestion happens
 > 
 >    If the requested flowcontrol value is not applicable to
 >    device, mac_flowctrl will remain old value and no change
 >    to system.

On the whole, I like this.  A few comments and suggestions:

	* What does the "-i" mean in the set-linkprop example above?

	* While the property names need not be verbose, I'd strongly
	  advise that they be pronouncable.  Hence, I'm opposed to
	  the "ctrl" in mac_flowctrl.  I also think the underscore
	  is hard to remember.  Maybe just "flowcontrol"?

	* "Bi" seems like a strange abbreviation (often with a sexual
	  connotation :-O); "both" seems more natural.  Likewise,
	  since there isn't a "yes" value, "none" seems more natural
	  than "no".

	  Alternatively, the parameter could support a comma-separated
	  list of values.  Thus, the four combinations would be:

	       "" (none)
	       "rx"
	       "tx"
	       "rx,tx" (or "tx,rx")

--
meem


More information about the brussels-dev mailing list