bnx2x: Fix compile errors if CONFIG_CNIC is not set
authorMichael Chan <mchan@broadcom.com>
Tue, 6 Dec 2011 10:58:08 +0000 (10:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Dec 2011 21:43:05 +0000 (16:43 -0500)
commitf2fd5c3458ffcf4f9b4fbfa64980dffe1850f7de
tree63ca253a0905896fe7f718c73d8c6cf440c4e260
parent8ef874bfc7296fa206eea2ad1e8a426f576bf6f6
bnx2x: Fix compile errors if CONFIG_CNIC is not set

Don't provide FCoE and iSCSI statistics to management firmware if
CONFIG_CNIC is not set.  Some needed structure fields are not defined
without CONFIG_CNIC.

Reported-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c