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=-7.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=no 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 18A86C433ED for ; Tue, 28 Jul 2020 21:48:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DB85C207FC for ; Tue, 28 Jul 2020 21:48:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595972882; bh=N2taIB4RYhNK+Mg8784PPSZFsRTY4ed2NmmNxEa8QJ0=; h=From:To:Cc:Subject:Date:List-ID:From; b=g9vLWWQYb+zeP+j/DksOxMvjankqpGXW6lVeaPp4wjkk6AxeKCOgSpO1DD8Gcz36q u06sEUKFc0jRO0cidm5XPkwqEV+XTDfRhZEhxoOoJ+kbYr37131jMF6LVeKmliTvAv NeUHBMzxyOzF41d2FB4Zx4KuLG9/7SsSwx7ehYE8= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729524AbgG1VsC (ORCPT ); Tue, 28 Jul 2020 17:48:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:58452 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729169AbgG1VsB (ORCPT ); Tue, 28 Jul 2020 17:48:01 -0400 Received: from kicinski-fedora-PC1C0HJN.thefacebook.com (unknown [163.114.132.5]) (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 380452074F; Tue, 28 Jul 2020 21:48:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595972881; bh=N2taIB4RYhNK+Mg8784PPSZFsRTY4ed2NmmNxEa8QJ0=; h=From:To:Cc:Subject:Date:From; b=joQnsQeyZ/Ma5QYnQUgLhXQRbPqozMn7R3C0BozITS05lSefVkXEMsgp+gcuAzgc7 nSvi5Ce5mhXapEXmT4+QL7SipfT0+SDMdMHfAQfHQ3nAOoVjO7221hV2/C+wkjetfN +RJWTiY0c3ZgRl4c4VNjjmIJu9bL5f1IkpMfTizw= From: Jakub Kicinski To: saeedm@mellanox.com Cc: netdev@vger.kernel.org, davem@davemloft.net, mkubecek@suse.cz, Jakub Kicinski Subject: [PATCH net-next v3 0/2] udp_tunnel: convert mlx5 to the new udp_tunnel infrastructure Date: Tue, 28 Jul 2020 14:47:57 -0700 Message-Id: <20200728214759.325418-1-kuba@kernel.org> X-Mailer: git-send-email 2.26.2 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 This set converts mlx5 to the new infrastructure. We need a small amount of special handling as mlx5 expects IANA VXLAN port to always be programmed into the device. ethtool will show such ports in a separate, type-less, fake table, at the end: Tunnel information for eth0: UDP port table 0: Size: 7 Types: vxlan No entries UDP port table 1: Size: 1 Types: none (static entries) Entries (1): port 4789, vxlan Saeed - this should apply on top of net-next, independently of the Intel patches, would you mind taking this in for testing and review? I'll post the netdevsim & test once Intel patches re-emerge. v3: - add missing include. v2: - don't disable the offload on reprs in patch #2. Jakub Kicinski (2): udp_tunnel: add the ability to hard-code IANA VXLAN mlx5: convert to new udp_tunnel infrastructure Documentation/networking/ethtool-netlink.rst | 3 + drivers/net/ethernet/mellanox/mlx5/core/en.h | 2 - .../net/ethernet/mellanox/mlx5/core/en_main.c | 88 ++----------------- .../net/ethernet/mellanox/mlx5/core/en_rep.c | 7 +- .../ethernet/mellanox/mlx5/core/lib/vxlan.c | 87 +++++++++--------- .../ethernet/mellanox/mlx5/core/lib/vxlan.h | 6 +- include/net/udp_tunnel.h | 5 ++ net/ethtool/tunnels.c | 69 +++++++++++++-- net/ipv4/udp_tunnel_nic.c | 7 ++ 9 files changed, 131 insertions(+), 143 deletions(-) -- 2.26.2