diff options
author | Andy Cress <andycress@gmail.com> | 2012-07-26 06:01:17 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-26 21:30:23 (GMT) |
commit | 4487e64de63b8e42efe5a5543871c42c5a5859d9 (patch) | |
tree | 7acaa761ef550ba879816ea05eb531c6b70099d1 /net | |
parent | f2c31662762b9e82b9891d6b385b17f9e5ef0ed2 (diff) | |
download | linux-fsl-qoriq-4487e64de63b8e42efe5a5543871c42c5a5859d9.tar.xz |
pch_gbe: vlan skb len fix
pch_gbe_xmit_frame skb->len verification was incorrect in vlan case
causing bogus transfer length errors. One correction could be:
offset = skb->protocol == htons(ETH_P_8021Q) ? 0 : 4;
if (unlikely(skb->len > (adapter->hw.mac.max_frame_size - offset)))
However, this verification is not necessary, so remove it.
Signed-off-by: Andy Cress <andy.cress@us.kontron.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions