[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20161123.202731.15246104261953121.davem@davemloft.net>
Date: Wed, 23 Nov 2016 20:27:31 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: christophe.jaillet@...adoo.fr
Cc: michael.chan@...adcom.com, prashant.sreedharan@...adcom.com,
netdev@...r.kernel.org, kernel-janitors@...r.kernel.org
Subject: Re: [PATCH] bnxt_en: Fix a VXLAN vs GENEVE issue
From: Christophe JAILLET <christophe.jaillet@...adoo.fr>
Date: Tue, 22 Nov 2016 06:14:40 +0100
> Knowing that:
> #define TUNNEL_DST_PORT_FREE_REQ_TUNNEL_TYPE_VXLAN (0x1UL << 0)
> #define TUNNEL_DST_PORT_FREE_REQ_TUNNEL_TYPE_GENEVE (0x5UL << 0)
> and that 'bnxt_hwrm_tunnel_dst_port_alloc()' is only called with one of
> these 2 constants, the TUNNEL_DST_PORT_ALLOC_REQ_TUNNEL_TYPE_GENEVE can not
> trigger.
>
> Replace the bit test that overlap by an equality test, just as in
> 'bnxt_hwrm_tunnel_dst_port_free()' above.
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@...adoo.fr>
Applied.
Powered by blists - more mailing lists