mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
ixgbe: Drop unnecessary addition from ixgbe_set_rx_buffer_len
We still had some code floating around from the old single buffer receive path. As a result we were adding VLAN_HLEN to max_frame although the resultant value was never used. Since that is the case we can drop this from the function. Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com> Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
71a49f777d
commit
505e371808
@ -3289,9 +3289,6 @@ static void ixgbe_set_rx_buffer_len(struct ixgbe_adapter *adapter)
|
|||||||
IXGBE_WRITE_REG(hw, IXGBE_MHADD, mhadd);
|
IXGBE_WRITE_REG(hw, IXGBE_MHADD, mhadd);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* MHADD will allow an extra 4 bytes past for vlan tagged frames */
|
|
||||||
max_frame += VLAN_HLEN;
|
|
||||||
|
|
||||||
hlreg0 = IXGBE_READ_REG(hw, IXGBE_HLREG0);
|
hlreg0 = IXGBE_READ_REG(hw, IXGBE_HLREG0);
|
||||||
/* set jumbo enable since MHADD.MFS is keeping size locked at max_frame */
|
/* set jumbo enable since MHADD.MFS is keeping size locked at max_frame */
|
||||||
hlreg0 |= IXGBE_HLREG0_JUMBOEN;
|
hlreg0 |= IXGBE_HLREG0_JUMBOEN;
|
||||||
|
Loading…
Reference in New Issue
Block a user