summary refs log tree commit diff
path: root/net
diff options
context:
space:
mode:
authorHariprasad Shenai <hariprasad@chelsio.com>2016-07-28 13:28:57 +0530
committerDavid S. Miller <davem@davemloft.net>2016-07-30 20:39:59 -0700
commit8d09e6b8b9c9969ac59496dc21e10b67fe727e7e (patch)
tree44210434f0677d58165a5259929bb1d3a731db71 /net
parentb2df430b52cf9ed2c01649aba7fde79ff57d2b98 (diff)
downloadlinux-8d09e6b8b9c9969ac59496dc21e10b67fe727e7e.tar.gz
cxgb4/cxgb4vf: Fixes regression in perf when tx vlan offload is disabled
The commit 637d3e997351 ("cxgb4: Discard the packet if the length is
greater than mtu") introduced a regression in the VLAN interface
performance when Tx VLAN offload is disabled.

Check if skb is tagged, regardless of whether it is hardware accelerated
or not. Presently we were checking only for hardware acclereated one,
which caused performance to drop to ~0.17Mbps on a 10GbE adapter for
VLAN interface, when tx vlan offload is turned off using ethtool.
The ethernet head length calculation was going wrong in this case, and
driver ended up dropping packets.

Fixes: 637d3e997351 ("cxgb4: Discard the packet if the length is greater than mtu")
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions