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 575272 Details for
Bug 809908
pch_gbe transfer length error with VLAN tagging and default MTU
[?]
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]
count vlan header on length verification
pch_gbe_vlan_offset (text/plain), 999 bytes, created by
Veaceslav Falico
on 2012-04-05 05:19:04 UTC
(
hide
)
Description:
count vlan header on length verification
Filename:
MIME Type:
Creator:
Veaceslav Falico
Created:
2012-04-05 05:19:04 UTC
Size:
999 bytes
patch
obsolete
>commit 4983dc6386a8902e9933ed0b9ad6a8f1fec7bdf4 >Author: Veaceslav Falico <vfalico@redhat.com> >Date: Thu Apr 5 07:09:13 2012 +0200 > > pch_gbe: check for vlan header on skb len verification > > yadda yadda > >diff --git a/drivers/net/pch_gbe/pch_gbe_main.c b/drivers/net/pch_gbe/pch_gbe_main.c >index 4d1b064..4658d69 100644 >--- a/drivers/net/pch_gbe/pch_gbe_main.c >+++ b/drivers/net/pch_gbe/pch_gbe_main.c >@@ -1923,8 +1923,11 @@ static int pch_gbe_xmit_frame(struct sk_buff *skb, struct net_device *netdev) > struct pch_gbe_adapter *adapter = netdev_priv(netdev); > struct pch_gbe_tx_ring *tx_ring = adapter->tx_ring; > unsigned long flags; >+ int offset; > >- if (unlikely(skb->len > (adapter->hw.mac.max_frame_size - 4))) { >+ offset = skb->protocol == htons(ETH_P_8021Q) ? 0 : 4; >+ >+ if (unlikely(skb->len > (adapter->hw.mac.max_frame_size - offset))) { > pr_err("Transfer length Error: skb len: %d > max: %d\n", > skb->len, adapter->hw.mac.max_frame_size); > dev_kfree_skb_any(skb);
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 809908
:
575180
|
575181
|
575272
|
576409