]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cnic: Wait for all Context IDs to be deleted before sending FCOE_DESTROY_FUNC
authorMichael Chan <mchan@broadcom.com>
Wed, 20 Jul 2011 14:55:23 +0000 (14:55 +0000)
committerBob Picco <bob.picco@oracle.com>
Fri, 3 Feb 2012 18:19:23 +0000 (13:19 -0500)
commit925cb09e4e2e3c98052d8db7e910736693e7c103
tree24b6f3a08c38b8061ec0c57703554227c7f924c3
parent25516e57cb2d35db28f746dc3a7fad66efb60185
cnic: Wait for all Context IDs to be deleted before sending FCOE_DESTROY_FUNC

Otherwise, the firmware will not respond and we'll have to wait for
timeout.  Refactor the wait loop we already have into a separate
function for this purpose.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Reviewed-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 74e49bbdabbac34c77b280152b1de9bef9bf9be7)
drivers/net/cnic.c