[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160824212648.43c45295@halley>
Date: Wed, 24 Aug 2016 21:26:48 +0300
From: Shmulik Ladkani <shmulik.ladkani@...il.com>
To: Amir Vadai <amir@...ai.me>
Cc: "David S. Miller" <davem@...emloft.net>, netdev@...r.kernel.org,
Jiri Benc <jbenc@...hat.com>, Jiri Pirko <jiri@...lanox.com>,
Jamal Hadi Salim <jhs@...atatu.com>,
Tom Herbert <tom@...bertland.com>,
Hadar Har-Zion <hadarh@...lanox.com>,
Or Gerlitz <ogerlitz@...lanox.com>
Subject: Re: [PATCH net-next V2 2/4] net/dst: Utility functions to build
dst_metadata without supplying an skb
Hi,
On Wed, 24 Aug 2016 15:27:08 +0300 Amir Vadai <amir@...ai.me> wrote:
> +static inline struct metadata_dst *
> +_ipv6_tun_rx_dst(struct in6_addr saddr, struct in6_addr daddr,
> + __u8 tos, __u8 ttl, __be32 label,
> + __be16 flags, __be64 tunnel_id, int md_size)
> +{
Prefer 'const struct in6_addr *saddr' parameter (daddr too).
This is aligned with almost all functions having an 'in6_addr' as a
parameter, to prevent the costy argument copy.
Powered by blists - more mailing lists