]> git.baikalelectronics.ru Git - kernel.git/commit
igb: Change RXPBSIZE size when setting Qav mode
authorJesus Sanchez-Palencia <jesus.sanchez-palencia@intel.com>
Sat, 17 Nov 2018 00:19:23 +0000 (16:19 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 20 Dec 2018 19:45:10 +0000 (11:45 -0800)
commit42964f8d1f9cb98066f9b8193cd27896ce5cdb37
tree8756a5a7457c74c26a3fc522001cd25dc835df52
parent7c04e63d689db588ee339e61ecef469e1ed325a6
igb: Change RXPBSIZE size when setting Qav mode

Section 4.5.9 of the datasheet says that the total size of all packet
buffers combined (TxPB 0 + 1 + 2 + 3 + RxPB + BMC2OS + OS2BMC) must not
exceed 60KB. Today we are configuring a total of 62KB, so reduce the
RxPB from 32KB to 30KB in order to respect that.

The choice of changing RxPBSIZE here is mainly because it seems more
correct to give more priority to the transmit packet buffers over the
receiver ones when running in Qav mode. Also, the BMC2OS and OS2BMC
sizes are already too short.

Signed-off-by: Jesus Sanchez-Palencia <jesus.s.palencia@gmail.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/e1000_defines.h
drivers/net/ethernet/intel/igb/igb_main.c