svn commit: r241616 - in head/sys: dev/ixgbe net

John Baldwin jhb at freebsd.org
Wed Oct 17 18:46:13 UTC 2012


On Wednesday, October 17, 2012 11:26:21 am Maksim Yevmenkin wrote:
> On Wed, Oct 17, 2012 at 6:51 AM, John Baldwin <jhb at freebsd.org> wrote:
> 
> [...]
> 
> >> > Maybe a helper 'if_set_baudrate(ifp, IF_Gbps(10))' that would DTRT.
> >> > (It could be a static inline or some such).  I would just like to
> >> > keep the readability.
> >>
> >> well, yes, i thought about it, but decided not to do it right away. we
> >> could provide shortcuts/macros for "popular" baudrates, i.e. 1, 10, 40
> >> and 100 Gbps. while ixgbe(4) example is not ideal, i thought it still
> >> was pretty readable :)
> >
> > I don't really find it all that readable.  IF_Gbps(1) looks like a typo
> > to a casual reader.  I really think you should have something like:
> 
> [...]
> 
> very well :)  would something like (please see below) work?

Looks good to me.  Thank you. :)

-- 
John Baldwin


More information about the svn-src-all mailing list