[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150820164727.GA8475@pox.localdomain>
Date: Thu, 20 Aug 2015 18:47:27 +0200
From: Thomas Graf <tgraf@...g.ch>
To: Pravin B Shelar <pshelar@...ira.com>
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH net-next v2 2/9] geneve: Use skb mark and protocol to
lookup route.
On 08/17/15 at 02:11pm, Pravin B Shelar wrote:
> On packet transmit path geneve need to lookup route. Following
> patch improves route lookup using more parameters.
>
> Signed-off-by: Pravin B Shelar <pshelar@...ira.com>
> ---
> drivers/net/geneve.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/net/geneve.c b/drivers/net/geneve.c
> index 51f7f8b..4f4d15e 100644
> --- a/drivers/net/geneve.c
> +++ b/drivers/net/geneve.c
> @@ -202,6 +202,9 @@ static netdev_tx_t geneve_xmit(struct sk_buff *skb, struct net_device *dev)
> memset(&fl4, 0, sizeof(fl4));
> fl4.flowi4_tos = RT_TOS(tos);
> fl4.daddr = geneve->remote.sin_addr.s_addr;
> + fl4.flowi4_mark = skb->mark;
> + fl4.flowi4_proto = IPPROTO_UDP;
Looks like it's time to add a helper for this so we don't lag behind
in specifying flowi parameters in various lookup sites all the time.
Acked-by: Thomas Graf <tgraf@...g.ch>
--
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