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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Jul 2011 19:38:32 +0000 (12:38 -0700)
commit74e49bbdabbac34c77b280152b1de9bef9bf9be7
treeb234bc89050abda03bb29103b416eebe3d5ff510
parentb37a41e390310429d4171b0f7b6c6eab04512dc0
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>
drivers/net/cnic.c