[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20140328.171050.472173056877978647.davem@davemloft.net>
Date: Fri, 28 Mar 2014 17:10:50 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: vyasevic@...hat.com
Cc: netdev@...r.kernel.org, eric.dumazet@...il.com
Subject: Re: [PATCH v2 net] net: Account for all vlan headers in
skb_mac_gso_segment
From: Vlad Yasevich <vyasevic@...hat.com>
Date: Thu, 27 Mar 2014 17:26:18 -0400
> skb_network_protocol() already accounts for multiple vlan
> headers that may be present in the skb. However, skb_mac_gso_segment()
> doesn't know anything about it and assumes that skb->mac_len
> is set correctly to skip all mac headers. That may not
> always be the case. If we are simply forwarding the packet (via
> bridge or macvtap), all vlan headers may not be accounted for.
>
> A simple solution is to allow skb_network_protocol to return
> the vlan depth it has calculated. This way skb_mac_gso_segment
> will correctly skip all mac headers.
>
> Signed-off-by: Vlad Yasevich <vyasevic@...hat.com>
> ---
> Since v1:
> - Removed conditionals and used dummy variables as suggested by
> Eric Dumazet.
Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists