ixgbe: Enable FCoE offload when DCB is enabled for 82599
authorYi Zou <yi.zou@intel.com>
Wed, 22 Jul 2009 14:07:12 +0000 (14:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Jul 2009 18:05:30 +0000 (11:05 -0700)
commit0d5515894fd5b9e9402ef76e9a7e704fd26e0e5f
tree19a4a2f9ae90409fb1547be120e84ad13dde3bf0
parentdacac4da5290ee3f3f413bd6980af2befb813e28
ixgbe: Enable FCoE offload when DCB is enabled for 82599

Currently, FCoE offload feature is turned on when the kernel config has
CONFIG_FCOE or CONFIG_FCOE_MODULE set. However, we really want to turn
FCoE offload on when there is FCoE traffic passing and turn it off when
it's just LAN traffic. Since FCoE depends on a lossless network provided
by DCB, this allows us to have FCoE turned on/off when user turns on DCB
using dcbtool.

Signed-off-by: Yi Zou <yi.zou@intel.com>
Acked-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ixgbe/ixgbe.h
drivers/net/ixgbe/ixgbe_dcb_nl.c
drivers/net/ixgbe/ixgbe_main.c