]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit18c369ffbf84a385f90053d36f2c6a3ab9cf96c8
treef718357f6e5a27759af89b862850ce1eb8c301d3
parentbfb1fd8e285910013f24a25053cd1b5b29ffb753
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