Re: [PATCH 1/3] bnx2: Add support for CNIC driver.

2008-05-27 Thread Paul E. McKenney
On Thu, May 22, 2008 at 09:52:48PM -0700, Michael Chan wrote: Paul E. McKenney wrote: So if a second CNIC driver attempts to register, it gets -EBUSY or something, right? There is only one CNIC driver and it will only register once per BNX2 netdevice. I would nevertheless recommend

Re: [PATCH 1/3] bnx2: Add support for CNIC driver.

2008-05-22 Thread Michael Chan
On Wed, 2008-05-21 at 23:45 -0700, Paul E. McKenney wrote: Some RCU-related questions interspersed below, for example, how are updates protected? Only one CNIC driver will ever register with the BNX2 driver. The main purpose of using RCU is so that the fast path can avoid locking when

[PATCH 1/3] bnx2: Add support for CNIC driver.

2008-05-21 Thread Michael Chan
Add interface for a separate CNIC driver to drive additional rings and other resources for iSCSI. A probe function is exported so that the CNIC driver can get information about bnx2 devices. After calling the probe function, the CNIC driver can then register with the BNX2 driver before