cnic: Allocate kcq resource only on devices that support FCoE.
authorMichael Chan <mchan@broadcom.com>
Sat, 8 Sep 2012 06:01:04 +0000 (06:01 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Sep 2012 19:48:21 +0000 (15:48 -0400)
commit51a8f54d13f1b2e91da214ff1e619628bd68fd27
tree4fd27d57a04e4043c58b0301543bbd0db694e42a
parent8cc0e028eda5bc07a4b816411448065b6892e383
cnic: Allocate kcq resource only on devices that support FCoE.

To save memory and to exit IRQ loop quicker on devices that don't support
FCoE.

Reviewed-by: Eddie Wai <eddie.wai@broadcom.com>
Reviewed-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/cnic.c
drivers/net/ethernet/broadcom/cnic.h