]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6e16613bb792654f6b71cb38694857876fb1900b
treebd9374768b0d1a6ee6249170f31fbc435872e94e
parent5d4244de10ae8ea07c9e4a6895d794b541473da1
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