Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 293315 Details for
Bug 430722
[RHEL5 U2] e1000e network issues while running kernel-xen variant
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
e1000e-crc-revert.patch
e1000e-crc-revert.patch (text/plain), 2.15 KB, created by
Andy Gospodarek
on 2008-01-29 18:45:28 UTC
(
hide
)
Description:
e1000e-crc-revert.patch
Filename:
MIME Type:
Creator:
Andy Gospodarek
Created:
2008-01-29 18:45:28 UTC
Size:
2.15 KB
patch
obsolete
>commit 140a74802894e9db57e5cd77ccff77e590ece5f3 >Author: Auke Kok <auke-jan.h.kok@intel.com> >Date: Thu Oct 25 13:57:58 2007 -0700 > > e1000e: Re-enable SECRC - crc stripping > > This workaround code performed software stripping instead of the > hardware which can do it much faster. None of the e1000e target > hardware has issues with this feature and should work fine. This > gives us some performance back on receive, and removes some > kludging stripping the 4 bytes. > > Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com> > Signed-off-by: Jeff Garzik <jeff@garzik.org> > >diff --git a/drivers/net/e1000e/netdev.c b/drivers/net/e1000e/netdev.c >index e87ed31..03fcc70 100644 >--- a/drivers/net/e1000e/netdev.c >+++ b/drivers/net/e1000e/netdev.c >@@ -494,10 +494,6 @@ static bool e1000_clean_rx_irq(struct e1000_adapter *adapter, > goto next_desc; > } > >- /* adjust length to remove Ethernet CRC */ >- length -= 4; >- >- /* probably a little skewed due to removing CRC */ > total_rx_bytes += length; > total_rx_packets++; > >@@ -964,8 +960,7 @@ static bool e1000_clean_rx_irq_ps(struct e1000_adapter *adapter, > kunmap_atomic(vaddr, KM_SKB_DATA_SOFTIRQ); > pci_dma_sync_single_for_device(pdev, ps_page->dma, > PAGE_SIZE, PCI_DMA_FROMDEVICE); >- /* remove the CRC */ >- l1 -= 4; >+ > skb_put(skb, l1); > goto copydone; > } /* if */ >@@ -987,10 +982,6 @@ static bool e1000_clean_rx_irq_ps(struct e1000_adapter *adapter, > skb->truesize += length; > } > >- /* strip the ethernet crc, problem is we're using pages now so >- * this whole operation can get a little cpu intensive */ >- pskb_trim(skb, skb->len - 4); >- > copydone: > total_rx_bytes += skb->len; > total_rx_packets++; >@@ -2034,9 +2025,11 @@ static void e1000_setup_rctl(struct e1000_adapter *adapter) > > ew32(RFCTL, rfctl); > >- /* disable the stripping of CRC because it breaks >- * BMC firmware connected over SMBUS */ >- rctl |= E1000_RCTL_DTYP_PS /* | E1000_RCTL_SECRC */; >+ /* Enable Packet split descriptors */ >+ rctl |= E1000_RCTL_DTYP_PS; >+ >+ /* Enable hardware CRC frame stripping */ >+ rctl |= E1000_RCTL_SECRC; > > psrctl |= adapter->rx_ps_bsize0 >> > E1000_PSRCTL_BSIZE0_SHIFT;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 430722
: 293315