src/dpdk/drivers/net/e1000/base/e1000_82575.c
u16 e1000_rxpbs_adjust_82580(u32 data)
{
	u16 ret_val = 0;

	if (data < E1000_82580_RXPBS_TABLE_SIZE)
		ret_val = e1000_82580_rxpbs_table[data];

	return ret_val;
}
/**
 *  e1000_rxpbs_adjust_82580 - adjust RXPBS value to reflect actual Rx PBA size
 *  @data: data received by reading RXPBS register
 *
 *  The 82580 uses a table based approach for packet buffer allocation sizes.
 *  This function converts the retrieved value into the correct table value
 *     0x0 0x1 0x2 0x3 0x4 0x5 0x6 0x7
 *  0x0 36  72 144   1   2   4   8  16
 *  0x8 35  70 140 rsv rsv rsv rsv rsv
 */
adjust RXPBS value to reflect actual Rx PBA size
@data: data received by reading RXPBS register

The 82580 uses a table based approach for packet buffer allocation sizes.
This function converts the retrieved value into the correct table value
0x0 0x1 0x2 0x3 0x4 0x5 0x6 0x7
0x0 36  72 144   1   2   4   8  16
0x8 35  70 140 rsv rsv rsv rsv rsv
adjust RXPBS value to reflect actual Rx PBA size @data : data received by reading RXPBS register The 82580 uses a table based approach for packet buffer allocation sizes . This function converts the retrieved value into the correct table value 0x0 0x1 0x2 0x3 0x4 0x5 0x6 0x7 0x0 36 72 144 1 2 4 8 16 0x8 35 70 140 rsv rsv rsv rsv rsv
u16 e1000_rxpbs_adjust_82580(u32 data)
{
	u16 ret_val = 0;
	if (data < E1000_82580_RXPBS_TABLE_SIZE)
		ret_val = e1000_82580_rxpbs_table[data];
	return ret_val;
}
u16 e1000_rxpbs_adjust_82580 ( u32 data ) { u16 ret_val = 0 ; if ( data < E1000_82580_RXPBS_TABLE_SIZE ) ret_val = e1000_82580_rxpbs_table [ data ] ; return ret_val ; }
e1000_rxpbs_adjust_82580 - adjust RXPBS value to reflect actual Rx PBA size
  @data: data received by reading RXPBS register
e1000_rxpbs_adjust_82580 - adjust RXPBS value to reflect actual Rx PBA size @data : data received by reading RXPBS register