ixgbe: DCB during ifup use correct CEE or IEEE mode
authorJohn Fastabend <john.r.fastabend@intel.com>
Wed, 23 Feb 2011 05:58:25 +0000 (05:58 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 12 Mar 2011 12:13:20 +0000 (04:13 -0800)
commitc27931da83bc486e192c8dfdab903ba51e176c54
treebd9374768b0d1a6ee6249170f31fbc435872e94e
parent17049d30c2dec6f26d6165cc135578f9e41d53d3
ixgbe: DCB during ifup use correct CEE or IEEE mode

DCB settings are cleared in the hardware across link events
during ifup ixgbe reprograms the hardware for DCB if it is
enabled. Now that we have two modes CEE or IEEE we need to
use the correct set of configuration data.

This patch checks the dcbx_cap bits and then enables the
device in the correct mode.

Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
Tested-by: Ross Brattain <ross.b.brattain@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ixgbe/ixgbe_main.c