cnic: Refactor some code.
commit86b53606ebec06b16be81c30fabdf8decc2be6b2
authorMichael Chan <mchan@broadcom.com>
Sat, 10 Oct 2009 13:46:57 +0000 (10 13:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Oct 2009 06:30:15 +0000 (11 23:30 -0700)
tree4e724ee65b7b004fbadaec1f577e430d846ff0b2
parent993ac7b5183f82edc9696cd17faae03523e00e09
cnic: Refactor some code.

Refactor ring init. code for subsequent 10G patches.  Also add rtnl_lock()
in cnic_uio_open() to prevent race condition with netdev events.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cnic.c