Re: svn commit: r275599 - in head/sys/ofed/include: linux net

2014-12-08 Thread Marko Zec
On Mon, 8 Dec 2014 07:26:00 + Craig Rodrigues rodr...@freebsd.org wrote: Author: rodrigc Date: Mon Dec 8 07:25:59 2014 New Revision: 275599 URL: https://svnweb.freebsd.org/changeset/base/275599 Log: Use CURVNET macros inside inet_get_local_port_range() function. Without this

Re: svn commit: r275599 - in head/sys/ofed/include: linux net

2014-12-08 Thread Hans Petter Selasky
On 12/08/14 09:36, Marko Zec wrote: Finally, the comment re. extra #includes and LIST_HEAD seems confusing since TD_TO_VNET() macro requires both sys/jail.h and net/vnet.h, and this dependency is unrelated to the LIST_HEAD macro cited in commit log. Regarding the headers, they must be in this

Re: svn commit: r275599 - in head/sys/ofed/include: linux net

2014-12-08 Thread Craig Rodrigues
On Mon, Dec 8, 2014 at 12:36 AM, Marko Zec z...@fer.hr wrote: And perhaps all of this stuff could have been completely avoided if cma_init() was scheduled to fire with curvnet contex already set to vnet0, using proper SYSINIT scheduling instead of module_init(), i.e. after SI_SUB_VNET and

svn commit: r275599 - in head/sys/ofed/include: linux net

2014-12-07 Thread Craig Rodrigues
Author: rodrigc Date: Mon Dec 8 07:25:59 2014 New Revision: 275599 URL: https://svnweb.freebsd.org/changeset/base/275599 Log: Use CURVNET macros inside inet_get_local_port_range() function. Without this fix, a kernel with VIMAGE + Infiniband will panic on bootup. Certain necessary