]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerJoe Jin <joe.jin@oracle.com>
Wed, 16 May 2012 14:41:12 +0000 (22:41 +0800)
commit3b8112ad00459fb66e4db93424211be9ecc25fbe
tree8fcc1797c3fe31fd847d94f142ba3d2c99352deb
parent1d392c2cacffb7292fcf215f8776fc6d668a53aa
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>
(cherry picked from commit f2fd5c3458ffcf4f9b4fbfa64980dffe1850f7de)
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/bnx2x/bnx2x_main.c