]> 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)
commit7a3e7f9c53e1b798b2fe6d4c86970f060e818daf
tree8756a5a7457c74c26a3fc522001cd25dc835df52
parentfd32bec43a62e473917c2e8ed21e44d9f17012c0
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