[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20141103.121856.1307429117331581815.davem@davemloft.net>
Date: Mon, 03 Nov 2014 12:18:56 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: therbert@...gle.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH net-next 3/7] gue: Add infrastructure for flags and
options
From: Tom Herbert <therbert@...gle.com>
Date: Sat, 1 Nov 2014 15:57:59 -0700
> @@ -20,7 +20,16 @@ static size_t fou_encap_hlen(struct ip_tunnel_encap *e)
>
> static size_t gue_encap_hlen(struct ip_tunnel_encap *e)
> {
> - return sizeof(struct udphdr) + sizeof(struct guehdr);
> + size_t len;
> + bool need_priv = false;
> +
> + len = sizeof(struct udphdr) + sizeof(struct guehdr);
> +
> + /* Add in lengths flags */
> +
> + len += need_priv ? GUE_LEN_PRIV : 0;
Add this need_priv logic in patch #6, not here.
--
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