New: Slow Transfer Speeds though openconnect, Juniper SSL vpns
Subsystems (2)
Begin forwarded message:
Date: Sat, 12 Apr 2014 08:35:59 -0700
From: "[email protected]" <[email protected]>
To: "[email protected]" <[email protected]>
Subject: [Bug 73891] New: Slow Transfer Speeds though openconnect, Juniper SSL vpns
https://bugzilla.kernel.org/show_bug.cgi?id=73891
Bug ID: 73891
Summary: Slow Transfer Speeds though openconnect, Juniper SSL
vpns
Product: Networking
Version: 2.5
Kernel Version: 3.14
Hardware: All
OS: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: Other
Assignee: [email protected]
Reporter: [email protected]
Regression: No
There was a regression in 3.14 which caused slow transfer speeds noticed when connected to openconnect and juniper ssl vpns.
There was also a discussion about this on the mailing list
https://lkml.org/lkml/2014/4/2/317
I had time to bisect.
# first bad commit: [53d6471cef17262d3ad1c7ce8982a234244f68ec] net: Account for all vlan headers in skb_mac_gso_segment
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
From: Stephen Hemminger <[email protected]>
Date: Mon, 14 Apr 2014 08:18:24 -0700
Quoted 6 lines
There was also a discussion about this on the mailing list
https://lkml.org/lkml/2014/4/2/317I had time to bisect.
# first bad commit: [53d6471cef17262d3ad1c7ce8982a234244f68ec] net: Account for all vlan headers in skb_mac_gso_segment
Vlad posted a fix for this today and it's in the net tree.
====================
Quoted 1 line
From
1e785f48d29a09b6cf96db7b49b6320dada332e1Mon Sep 17 00:00:00 2001
From: Vlad Yasevich <[email protected]>
Date: Mon, 14 Apr 2014 17:37:26 -0400
Subject: [PATCH] net: Start with correct mac_len in skb_network_protocol
Sometimes, when the packet arrives at skb_mac_gso_segment() its skb->mac_len already accounts for some of the mac lenght headers in the packet. This seems to happen when forwarding through and OpenSSL tunnel.
When we start looking for any vlan headers in skb_network_protocol() we seem to ignore any of the already known mac headers and start with an ETH_HLEN. This results in an incorrect offset, dropped TSO frames and general slowness of the connection.
We can start counting from the known skb->mac_len and return at least that much if all mac level headers are known and accounted for.
--- net/core/dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/core/dev.c +1 -1
@@ -2284,7 +2284,7 @@ EXPORT_SYMBOL(skb_checksum_help);__be16 skb_network_protocol (struct sk_buff *skb,int *depth) {__be16 type = skb->protocol; -int vlan_depth =ETH_HLEN ; +int vlan_depth = skb->mac_len;/* Tunnel gso handlers can set protocol to ethernet. */ if (type ==htons (ETH_P_TEB )) {
Signature · 1 line
1.9.0