e1000e: Driver workaround for IPv6 Header Extension Erratum.
Previously, IPv6 extension header parsing was disabled for all devices supported by e1000e when using packet split mode. However, as per a silicon errata, only certain devices need this restriction and will need to disable IPv6 extension header parsing for all modes. Signed-off-by: Matthew Vick <matthew.vick@intel.com> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
committed by
Jeff Kirsher
parent
885fe7be4b
commit
f6bd5577a3
@@ -2939,6 +2939,7 @@ static void e1000_setup_rctl(struct e1000_adapter *adapter)
|
||||
/* Enable Extended Status in all Receive Descriptors */
|
||||
rfctl = er32(RFCTL);
|
||||
rfctl |= E1000_RFCTL_EXTEN;
|
||||
ew32(RFCTL, rfctl);
|
||||
|
||||
/*
|
||||
* 82571 and greater support packet-split where the protocol
|
||||
@@ -2964,13 +2965,6 @@ static void e1000_setup_rctl(struct e1000_adapter *adapter)
|
||||
if (adapter->rx_ps_pages) {
|
||||
u32 psrctl = 0;
|
||||
|
||||
/*
|
||||
* disable packet split support for IPv6 extension headers,
|
||||
* because some malformed IPv6 headers can hang the Rx
|
||||
*/
|
||||
rfctl |= (E1000_RFCTL_IPV6_EX_DIS |
|
||||
E1000_RFCTL_NEW_IPV6_EXT_DIS);
|
||||
|
||||
/* Enable Packet split descriptors */
|
||||
rctl |= E1000_RCTL_DTYP_PS;
|
||||
|
||||
@@ -3009,7 +3003,6 @@ static void e1000_setup_rctl(struct e1000_adapter *adapter)
|
||||
*/
|
||||
}
|
||||
|
||||
ew32(RFCTL, rfctl);
|
||||
ew32(RCTL, rctl);
|
||||
/* just started the receive unit, no need to restart */
|
||||
adapter->flags &= ~FLAG_RX_RESTART_NOW;
|
||||
|
||||
Reference in New Issue
Block a user