[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150826204616.GC9495@tuxdriver.com>
Date: Wed, 26 Aug 2015 16:46:17 -0400
From: "John W. Linville" <linville@...driver.com>
To: Pravin B Shelar <pshelar@...ira.com>
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH v3 net-next 2/8] geneve: Use skb mark and protocol to
lookup route.
On Mon, Aug 24, 2015 at 10:43:09AM -0700, 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>
> Reviewed-by: Jesse Gross <jesse@...ira.com>
> Acked-by: Thomas Graf <tgraf@...g.ch>
> ---
> drivers/net/geneve.c | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/net/geneve.c b/drivers/net/geneve.c
> index 95e9da0..3c5b2b1 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;
> +
> rt = ip_route_output_key(geneve->net, &fl4);
> if (IS_ERR(rt)) {
> netdev_dbg(dev, "no route to %pI4\n", &fl4.daddr);
Acked-by: John W. Linville <linville@...driver.com>
--
John W. Linville Someday the world will need a hero, and you
linville@...driver.com might be all we have. Be ready.
--
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