Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp926904pxf; Thu, 8 Apr 2021 16:47:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzOYFl5nG2xBuaKVAyoNjnpwAVSGmlNGixmkRqxVMIjkykSFZ11VLSkRLff3dKYvRmtaJE X-Received: by 2002:a05:6402:1b1c:: with SMTP id by28mr14595329edb.62.1617925640983; Thu, 08 Apr 2021 16:47:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617925640; cv=none; d=google.com; s=arc-20160816; b=x8lEXIWEj9yP0gHfsMY25zta+qa73VsEKo0DOxKZH3LxFDiprJ+3m2wWLrRdyjy7LK 8/bTbPqHLJ760A4wv/w/fY8juXSDsFng8SzvqN4lZZmrgqbZY6gtJd79Ngd01Lg3k6Os sckytf/LMkUdgLCIpYEN67cBd2DmpH3FTvGvS92qp+PwD7w8ivKp8srvAaht5RzNrrVN x6wRjJytuo3DWoAbXs77c2R1AaNXpgAYkjicQoTKkBU5qbSo4yn8Ygc8mUEfOARFioTL otrHiSkBPx7AtEK9g9kgWrOgL5btvdwIlysAjmupG6hNboGLweYVaCEpPac7pnp3CMnw xJnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=DxyRoQ5Ujuq/qKST3/Nby+CZta3m7oASwyoeouT8epU=; b=tVe9jC+NHNb/Un85Gm/tWy8kzIHHgg+KM4i0ZCOduwVS2afoNvwhRyzUpjKr+o9kVh IBzwprwubGiFrqsTQbL1t3+tqRAUclD4BcV+DGR1ydTg081UwWKdICCpXvYUi+oyEcvK ws8Rn2QK/eAh2ffSCyyS9+m5xOCXNBM4t9OWnOUPRuetKPjgpog9W7H0eQUkM/McUHP+ SVCRehOdsRLtmaBl6Iji+2Pg2Bb4qAPiZX18QXIvMP7tTMaJGkla2nDAySrSgDzd7ftv Qwz2Tz6PKdLSUEugkUGvldzhWf7PcGuzuUTW0TlRJq6nJrjigCEhorpJSEH+0jt10TIU 5T4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@networkplumber-org.20150623.gappssmtp.com header.s=20150623 header.b=vTyV9E9t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y19si805960edt.293.2021.04.08.16.46.57; Thu, 08 Apr 2021 16:47:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@networkplumber-org.20150623.gappssmtp.com header.s=20150623 header.b=vTyV9E9t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233002AbhDHXqO (ORCPT + 99 others); Thu, 8 Apr 2021 19:46:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232426AbhDHXqN (ORCPT ); Thu, 8 Apr 2021 19:46:13 -0400 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDAD1C061760 for ; Thu, 8 Apr 2021 16:46:01 -0700 (PDT) Received: by mail-pl1-x62c.google.com with SMTP id l1so1834247plg.12 for ; Thu, 08 Apr 2021 16:46:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=DxyRoQ5Ujuq/qKST3/Nby+CZta3m7oASwyoeouT8epU=; b=vTyV9E9tVWKxSxw1bstzwnnTK0MZL0NLEwkLxmTFK9+szP/aovP5toYLxSluisEnxb KuYkKZc2Rmh3JMGpeACXvA/TzvhF7Uf/wTj6cg0N9UcFHrAL0PMkzqfuwAuX3mcK8W73 d7zZQFQCPijid/mS1Y/XS2+aeQ5mb56zCa5O6/lHY2Nhnx8JFX5dQPxPpvbaR4CFcCL0 KRRBJ1rKr8x6BbwgMFfozRRx0lEnFHcddlciu6b9AS2VpWb3IGttrvfUvdtSi9zBXOj7 1+46CrxgDIKaQJUIWNTdrvLG5v98eVOWhw/Voj6Od3K7Gh4YQBuXKpzSP4pFn1UB2nAV YEYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=DxyRoQ5Ujuq/qKST3/Nby+CZta3m7oASwyoeouT8epU=; b=De/d39TizEA/BY9DDiuE51FGQLTlUdWnuXU64gPFv3T81irpDuHJuYMbuw8yOS/Sa2 vrvNElmYITImMhuA6aGAqKBgvn4EI5yGDqhEzlysqZqHrkTZbzirG64ktZbVCZJQBPoZ YME6iheuksCS0wPB41bM3W3GYxfYDN9sOfy+HYI6YtaaNTWYjN7aeH8s3n8K+xjuRSoi 9bjFtJ4pxmqxkaYCLhJ2eePBNppiw8ZhMyFkgmrxdDB0kmo6arYrjooCj/kg5epSP1eM bU/tcRe9Cv41qu4rAauuHM/31Ygul4OII7QjDBX17fAbAke6AcMZoKayi7k2D+McoNr0 J5GQ== X-Gm-Message-State: AOAM532AiGhw51DWUGH3wnr9DZFbz9/Jodr9bBbWvsifGtj0erHLwiAa C6l6n6nR24x4sq0hJYfxhevWuQ== X-Received: by 2002:a17:90a:d3d8:: with SMTP id d24mr10530147pjw.166.1617925561416; Thu, 08 Apr 2021 16:46:01 -0700 (PDT) Received: from hermes.local (76-14-218-44.or.wavecable.com. [76.14.218.44]) by smtp.gmail.com with ESMTPSA id l1sm410489pgt.29.2021.04.08.16.46.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Apr 2021 16:46:01 -0700 (PDT) Date: Thu, 8 Apr 2021 16:45:52 -0700 From: Stephen Hemminger To: Dexuan Cui Cc: davem@davemloft.net, kuba@kernel.org, kys@microsoft.com, haiyangz@microsoft.com, sthemmin@microsoft.com, wei.liu@kernel.org, liuwe@microsoft.com, netdev@vger.kernel.org, leon@kernel.org, andrew@lunn.ch, bernd@petrovitsch.priv.at, rdunlap@infradead.org, linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org Subject: Re: [PATCH v3 net-next] net: mana: Add a driver for Microsoft Azure Network Adapter (MANA) Message-ID: <20210408164552.2d67f7b1@hermes.local> In-Reply-To: <20210408225840.26304-1-decui@microsoft.com> References: <20210408225840.26304-1-decui@microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 8 Apr 2021 15:58:40 -0700 Dexuan Cui wrote: > Add a VF driver for Microsoft Azure Network Adapter (MANA) that will be > available in the future. > > Co-developed-by: Haiyang Zhang > Signed-off-by: Haiyang Zhang > Signed-off-by: Dexuan Cui > --- > MAINTAINERS | 4 +- > drivers/net/ethernet/Kconfig | 1 + > drivers/net/ethernet/Makefile | 1 + > drivers/net/ethernet/microsoft/Kconfig | 29 + > drivers/net/ethernet/microsoft/Makefile | 5 + > drivers/net/ethernet/microsoft/mana/Makefile | 6 + > drivers/net/ethernet/microsoft/mana/gdma.h | 728 +++++++ > .../net/ethernet/microsoft/mana/gdma_main.c | 1515 ++++++++++++++ > .../net/ethernet/microsoft/mana/hw_channel.c | 859 ++++++++ > .../net/ethernet/microsoft/mana/hw_channel.h | 186 ++ > drivers/net/ethernet/microsoft/mana/mana.h | 531 +++++ > drivers/net/ethernet/microsoft/mana/mana_en.c | 1827 +++++++++++++++++ > .../ethernet/microsoft/mana/mana_ethtool.c | 278 +++ > .../net/ethernet/microsoft/mana/shm_channel.c | 292 +++ > .../net/ethernet/microsoft/mana/shm_channel.h | 21 + > 15 files changed, 6282 insertions(+), 1 deletion(-) > create mode 100644 drivers/net/ethernet/microsoft/Kconfig > create mode 100644 drivers/net/ethernet/microsoft/Makefile > create mode 100644 drivers/net/ethernet/microsoft/mana/Makefile > create mode 100644 drivers/net/ethernet/microsoft/mana/gdma.h > create mode 100644 drivers/net/ethernet/microsoft/mana/gdma_main.c > create mode 100644 drivers/net/ethernet/microsoft/mana/hw_channel.c > create mode 100644 drivers/net/ethernet/microsoft/mana/hw_channel.h > create mode 100644 drivers/net/ethernet/microsoft/mana/mana.h > create mode 100644 drivers/net/ethernet/microsoft/mana/mana_en.c > create mode 100644 drivers/net/ethernet/microsoft/mana/mana_ethtool.c > create mode 100644 drivers/net/ethernet/microsoft/mana/shm_channel.c > create mode 100644 drivers/net/ethernet/microsoft/mana/shm_channel.h Linux kernel doesn't do namespaces in the code, so every new driver needs to worry about global symbols clashing Please make sure there are not name conflicts with other drivers around variable or functions name "gdma_". Noticed there is one driver in staging using similar names (drivers/staging/ralink-gdma/ralink-gdma.c). Granted that is in the staging doghouse so probably not important but might show up as a name conflict with something like the randconfig testing.