From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8C996C433DF for ; Thu, 9 Jul 2020 23:29:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5E1F520578 for ; Thu, 9 Jul 2020 23:29:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594337386; bh=lyId8jenA3z6Pk9evXswpES4N7zDYyMYTV8XMm8afpo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=ikRse+fyk5ilml6CDDGd8ph435jqosrKjxDe0VhYMQnbNXc3Y20UyA4RMri4Rm0pA bcDZUmYAjfS/w1WJ3eJbbJ5LAyElBmW6IJ5bviuGp5rYduaUwL0eLoNvZQb9DRDoJ4 QxYTWS+Bz3Xp3hwfHmcAiTDoMdMM5+llKOTpZ7y8= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727044AbgGIX3d (ORCPT ); Thu, 9 Jul 2020 19:29:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:46180 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726864AbgGIX33 (ORCPT ); Thu, 9 Jul 2020 19:29:29 -0400 Received: from kicinski-fedora-PC1C0HJN.thefacebook.com (unknown [163.114.132.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D591F2078B; Thu, 9 Jul 2020 23:29:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594337369; bh=lyId8jenA3z6Pk9evXswpES4N7zDYyMYTV8XMm8afpo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ECs1kO90n9g597xGlxgMid0OfW/69IwA1hGSmXPZsd+M+ospHl5DaxKaqsOha3cF/ 9EteAr2tnDtH0YEsTqA7Wf33x9DYqPzvWGDy/YzJILBd6uRvjjn7ExnWkneeaXDHri rGH9oFS596NOubE2hQEZugJIcKLE/yjxEmfhKaSE= From: Jakub Kicinski To: davem@davemloft.net Cc: netdev@vger.kernel.org, saeedm@mellanox.com, michael.chan@broadcom.com, emil.s.tantilov@intel.com, alexander.h.duyck@linux.intel.com, jeffrey.t.kirsher@intel.com, tariqt@mellanox.com, mkubecek@suse.cz, Jakub Kicinski Subject: [PATCH net-next v3 02/10] udp_tunnel: re-number the offload tunnel types Date: Thu, 9 Jul 2020 16:28:52 -0700 Message-Id: <20200709232900.105163-3-kuba@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200709232900.105163-1-kuba@kernel.org> References: <20200709232900.105163-1-kuba@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Make it possible to use tunnel types as flags more easily. There doesn't appear to be any user using the type as an array index, so this should make no difference. Signed-off-by: Jakub Kicinski --- include/net/udp_tunnel.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/net/udp_tunnel.h b/include/net/udp_tunnel.h index e7312ceb2794..0615e25f041c 100644 --- a/include/net/udp_tunnel.h +++ b/include/net/udp_tunnel.h @@ -106,9 +106,9 @@ void setup_udp_tunnel_sock(struct net *net, struct socket *sock, * call this function to perform Tx offloads on outgoing traffic. */ enum udp_parsable_tunnel_type { - UDP_TUNNEL_TYPE_VXLAN, /* RFC 7348 */ - UDP_TUNNEL_TYPE_GENEVE, /* draft-ietf-nvo3-geneve */ - UDP_TUNNEL_TYPE_VXLAN_GPE, /* draft-ietf-nvo3-vxlan-gpe */ + UDP_TUNNEL_TYPE_VXLAN = BIT(0), /* RFC 7348 */ + UDP_TUNNEL_TYPE_GENEVE = BIT(1), /* draft-ietf-nvo3-geneve */ + UDP_TUNNEL_TYPE_VXLAN_GPE = BIT(2), /* draft-ietf-nvo3-vxlan-gpe */ }; struct udp_tunnel_info { -- 2.26.2