Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d249be54 authored by Alexander Duyck's avatar Alexander Duyck Committed by David S. Miller
Browse files

igb: use packet buffer sizes from RXPBS register



This patch changes the configuration for 82576 so that it uses the actual
value of the 82576 rx packet buffer size instead of just assuming the
value.

Signed-off-by: default avatarAlexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 317f66bd
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -228,6 +228,8 @@ struct e1000_adv_tx_context_desc {

#define ALL_QUEUES   0xFFFF

/* RX packet buffer size defines */
#define E1000_RXPBS_SIZE_MASK_82576  0x0000007F
void igb_vmdq_set_loopback_pf(struct e1000_hw *, bool);
void igb_vmdq_set_replication_pf(struct e1000_hw *, bool);

+2 −0
Original line number Diff line number Diff line
@@ -102,7 +102,9 @@
#define E1000_ETQF(_n)  (0x05CB0 + (4 * (_n))) /* EType Queue Fltr */

#define E1000_RQDPC(_n) (0x0C030 + ((_n) * 0x40))

/* Split and Replication RX Control - RW */
#define E1000_RXPBS    0x02404  /* Rx Packet Buffer Size - RW */
/*
 * Convenience macros
 *
+2 −1
Original line number Diff line number Diff line
@@ -1215,7 +1215,8 @@ void igb_reset(struct igb_adapter *adapter)
	 */
	switch (mac->type) {
	case e1000_82576:
		pba = E1000_PBA_64K;
		pba = rd32(E1000_RXPBS);
		pba &= E1000_RXPBS_SIZE_MASK_82576;
		break;
	case e1000_82575:
	default: