Bug 13004 - [PATCH][bonding] xmit hash policy doesn't recognize vlan tagged and PPPoE frames
Summary: [PATCH][bonding] xmit hash policy doesn't recognize vlan tagged and PPPoE frames
Status: RESOLVED OBSOLETE
Alias: None
Product: Networking
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Jay Vosburgh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-03 16:34 UTC by Adam Osuchowski
Modified: 2012-05-30 15:10 UTC (History)
1 user (show)

See Also:
Kernel Version: 2.6.29
Subsystem:
Regression: No
Bisected commit-id:


Attachments
Patch (1.84 KB, patch)
2009-04-03 16:35 UTC, Adam Osuchowski
Details | Diff

Description Adam Osuchowski 2009-04-03 16:34:23 UTC
Hi,

there is a problem with xmit hash policy in bonding driver. It doesn't work
when using layer 2+3 or 3+4 policy on vlan tagged or PPPoE frames.
Functions bond_xmit_hash_policy_l23() and bond_xmit_hash_policy_l34()
check if frame ethertype is ETH_P_IP and unless, it fall back to layer 2
hashing. It additionally should check, if frame ethertype is ETH_P_8021Q or
ETH_P_PPP_SES and embedded type is ETH_P_IP and if so, also treat it as
IP packet.

Appropriate patch in attachment.
Comment 1 Adam Osuchowski 2009-04-03 16:35:46 UTC
Created attachment 20795 [details]
Patch
Comment 2 Andrew Morton 2009-04-09 21:13:28 UTC
(switched to email.  Please respond via emailed reply-to-all, not via the
bugzilla web interface).

On Fri, 3 Apr 2009 16:34:24 GMT
bugzilla-daemon@bugzilla.kernel.org wrote:

> http://bugzilla.kernel.org/show_bug.cgi?id=13004
> 
>            Summary: [bonding] xmit hash policy doesn't recognize vlan
>                     tagged and PPPoE frames
>            Product: Networking
>            Version: 2.5
>           Platform: All
>         OS/Version: Linux
>               Tree: Mainline
>             Status: NEW
>           Severity: normal
>           Priority: P1
>          Component: Other
>         AssignedTo: acme@ghostprotocols.net
>         ReportedBy: adwol@zonk.pl
>         Regression: No
> 
> 
> Hi,
> 
> there is a problem with xmit hash policy in bonding driver. It doesn't work
> when using layer 2+3 or 3+4 policy on vlan tagged or PPPoE frames.
> Functions bond_xmit_hash_policy_l23() and bond_xmit_hash_policy_l34()
> check if frame ethertype is ETH_P_IP and unless, it fall back to layer 2
> hashing. It additionally should check, if frame ethertype is ETH_P_8021Q or
> ETH_P_PPP_SES and embedded type is ETH_P_IP and if so, also treat it as
> IP packet.
> 
> Appropriate patch in attachment.
> 

Jay, there's a patch in there.

Adam, please prefer to submit patches via email as per
Documentation/SubmittingPatches rather than via bugzilla, thanks.

Note You need to log in before you can comment on or make changes to this bug.