igb: Use a 32-bit mask when calculating the flow control watermarks
authorMatthew Vick <matthew.vick@intel.com>
Thu, 8 Nov 2012 04:03:58 +0000 (04:03 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 28 Nov 2012 12:13:39 +0000 (04:13 -0800)
commitd48507fed960f0a557f811129271829245b607b0
treef718357f6e5a27759af89b862850ce1eb8c301d3
parent76f640f147561b99092c0697f9eda4103a8d545b
igb: Use a 32-bit mask when calculating the flow control watermarks

For some devices, the result of the flow control high watermark gets
truncated when programming it into the registers because of the mask used.
Switch the mask to 32-bit to prevent this from happening.

Signed-off-by: Matthew Vick <matthew.vick@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/igb_main.c