ixgbe: Clean up a useless switch statement and dead code in configure_srrctl
authorAlexander Duyck <alexander.h.duyck@intel.com>
Sat, 5 May 2012 05:30:59 +0000 (05:30 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 11 Jul 2012 09:02:26 +0000 (02:02 -0700)
commit45e9baa515df201455658e609c19e5ef7c628756
tree31c573bd23d1e1f5a2c59133fce968175bc6d17b
parente4b317e90964d471b4f259400f9c80321028f779
ixgbe: Clean up a useless switch statement and dead code in configure_srrctl

This patch replaces a switch statement for an 82598 workaround with an if
statement that only applies to 82598. In addition I am pulling out several
dead pieces of code and instead of reading the SRRCTL register and then
modifying it we are just writing a value which we generate from scratch.
Finally I am also removing any drop enable related code since that was
moved to a function of its own.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c