Re: [PATCH 2/3] cnic: Add CNIC driver.

2008-05-27 Thread Roland Dreier
> +config CNIC > +tristate "Broadcom CNIC support" > +depends on BNX2 I suspect you'll need a "depends on INET" somewhere (probably here, but maybe only for the iSCSI part). - R. --~--~-~--~~~---~--~~ You received this message because you are subscrib

Re: [PATCH 3/3] bnx2i: Add bnx2i iSCSI driver.

2008-05-27 Thread Roland Dreier
Hi Michael, I was reading over the driver to try and figure out how you handle allocating source ports for the offloaded TCP connections you make so that they don't collide with the main network stack. It looks like you have: > +/** > + * bnx2i_alloc_tcp_port - allocates a tcp port from the fr

Re: [PATCH 2/3] cnic: Add CNIC driver.

2008-05-27 Thread Roland Dreier
> +/* Tell compiler that status_blk fields can change. */ > +barrier(); > +if (status_idx != sblk->status_idx) { Is a compiler barrier sufficient here? It seems an out-of-order CPU could still mess things up, so an rmb() or smp_rmb() would be required. --~