]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit6f9ae17530f996e90268dae5ee843e432e40ccb3
tree8756a5a7457c74c26a3fc522001cd25dc835df52
parent59361316afcb08569af21e1af83e89c7051c055a
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