]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cnic: Fix ring setup/shutdown code
authorMichael Chan <mchan@broadcom.com>
Wed, 13 Jul 2011 17:24:19 +0000 (17:24 +0000)
committerBob Picco <bob.picco@oracle.com>
Fri, 3 Feb 2012 18:18:32 +0000 (13:18 -0500)
commite3fa7405505ffd72e2d53c15e37cc653c6efd075
treecc4afdb06e4c1760f499e3257fe878abc0a7d6f1
parentfde00735ab4f94a6004ec783e106d50f4d48f730
cnic: Fix ring setup/shutdown code

Latest bnx2x driver uses different CID for the iSCSI rings, so
we need to pass it in the ring init data.  The rx ring is also
zeroed out to prevent stale DMA addresses from being used after
shutdown.

The same cp local variable redefined inside the else branch is
also eliminated.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit e1dd883cb15310dc2ded9995a1f1d8b1cb1e88f3)
drivers/net/cnic.c