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

2012-10-17 Thread John Baldwin
On Wednesday, October 17, 2012 11:26:21 am Maksim Yevmenkin wrote: > On Wed, Oct 17, 2012 at 6:51 AM, John Baldwin 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 th

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

2012-10-17 Thread Maksim Yevmenkin
On Wed, Oct 17, 2012 at 6:51 AM, John Baldwin 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 righ

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

2012-10-17 Thread John Baldwin
On Tuesday, October 16, 2012 5:10:56 pm Maksim Yevmenkin wrote: > On Tue, Oct 16, 2012 at 2:02 PM, John Baldwin wrote: > > On Tuesday, October 16, 2012 4:18:16 pm Maksim Yevmenkin wrote: > >> Author: emax > >> Date: Tue Oct 16 20:18:15 2012 > >> New Revision: 241616 > >> URL: http://svn.freebsd.or

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

2012-10-16 Thread Maksim Yevmenkin
On Tue, Oct 16, 2012 at 2:02 PM, John Baldwin wrote: > On Tuesday, October 16, 2012 4:18:16 pm Maksim Yevmenkin wrote: >> Author: emax >> Date: Tue Oct 16 20:18:15 2012 >> New Revision: 241616 >> URL: http://svn.freebsd.org/changeset/base/241616 >> >> Log: >> introduce concept of ifi_baudrate po

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

2012-10-16 Thread John Baldwin
On Tuesday, October 16, 2012 4:18:16 pm Maksim Yevmenkin wrote: > Author: emax > Date: Tue Oct 16 20:18:15 2012 > New Revision: 241616 > URL: http://svn.freebsd.org/changeset/base/241616 > > Log: > introduce concept of ifi_baudrate power factor. the idea is to work > around the problem where h

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

2012-10-16 Thread Maksim Yevmenkin
Author: emax Date: Tue Oct 16 20:18:15 2012 New Revision: 241616 URL: http://svn.freebsd.org/changeset/base/241616 Log: introduce concept of ifi_baudrate power factor. the idea is to work around the problem where high speed interfaces (such as ixgbe(4)) are not able to report real ifi_baudra