[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8874f5a2-b86f-6c85-525f-534381daa8a3@cumulusnetworks.com>
Date: Fri, 19 Jul 2019 13:17:44 -0600
From: David Ahern <dsa@...ulusnetworks.com>
To: Peter Kosyh <p.kosyh@...il.com>
Cc: davem@...emloft.net, Shrijeet Mukherjee <shrijeet@...il.com>,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] vrf: make sure skb->data contains ip header to make
routing
On 7/19/19 2:11 AM, Peter Kosyh wrote:
> vrf_process_v4_outbound() and vrf_process_v6_outbound() do routing
> using ip/ipv6 addresses, but don't make sure the header is available
> in skb->data[] (skb_headlen() is less then header size).
>
> Case:
>
> 1) igb driver from intel.
> 2) Packet size is greater then 255.
> 3) MPLS forwards to VRF device.
>
> So, patch adds pskb_may_pull() calls in vrf_process_v4/v6_outbound()
> functions.
>
> Signed-off-by: Peter Kosyh <p.kosyh@...il.com>
> ---
> drivers/net/vrf.c | 58 +++++++++++++++++++++++++++++++++----------------------
> 1 file changed, 35 insertions(+), 23 deletions(-)
>
Reviewed-by: David Ahern <dsa@...ulusnetworks.com>
Powered by blists - more mailing lists