Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4146842rwb; Tue, 8 Nov 2022 12:48:21 -0800 (PST) X-Google-Smtp-Source: AMsMyM6WQIkWaP3hhMCykYYPw6lJYSLqZwlJBVrSCrvsHxuPBuLlhuB70Rt+UkThi6bt4b+loyqG X-Received: by 2002:a17:907:1b22:b0:741:8809:b4e6 with SMTP id mp34-20020a1709071b2200b007418809b4e6mr54808292ejc.84.1667940501210; Tue, 08 Nov 2022 12:48:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667940501; cv=none; d=google.com; s=arc-20160816; b=OGTJMrn4RICPn8yD7JIqWKEI/lt7vmGfgYZ0AL3CX97tZZ7KljM2l8hL9jChgsjHxT uf7KqZuHRO2KdKaXD8rrM0yE8dy2FEzpvD4nMUJdtj5SoAnC3hyg+RtCjQNYSZizJ6n8 MGulH4NPfZhEpj5dTEM5MgCSjwdXeLL3JhLyW1sN2QeZNPCSkMzN1ApMVQewt1IsPOt7 6YW/t2GJw9dbTzkOl/3Q0ZHRAvtZkYeCduDTfhnUMKbq6shM/ho92sQY6ufEs16LtfAH bR2OO1By5OuwAS7OYRyEujrKjt/d7HLfZDmlKJsBSHe/4NTMtzXCUO9ksil1guuNdBuK PBkQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=b/uyn2DhR1Fdqjkrf+V8LcqMK8HBEi7P55ivfn8OZUs=; b=bJvuQmMCxsFXPUjFLbYQDrAOi91PuFKzPsYWQKP7mpy744n81vZ54AkmDERaEqWVOb EcOgZL+iKRDWSat2vGwfywSW2B5Xm1eTP/7kbu8SqsniGW/8plvoym1ZWPcH3HBpLWiX s6r3aFeEaKfFQou3A0hHqRDoXboGakjMOf3xZsaPDFBWLFGi51oB+UUnwp3Qvo9mVBvn mMpQ5WH57aVn6EHtNQedURyehupmNLewN3/RaDM/iAdbbA3166R6pJuN2/u4s/IHIbcC YGdvgnmIbnu03y1TIfB6nkTqO0p7Yco4R9N3ZJ3HUuOa0BW2HJoJ2OWH91v70s5heKo+ vYpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=GIIIoD9X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id by12-20020a0564021b0c00b00462d53d6de6si11068921edb.10.2022.11.08.12.47.59; Tue, 08 Nov 2022 12:48:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=GIIIoD9X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229944AbiKHUmu (ORCPT + 91 others); Tue, 8 Nov 2022 15:42:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229709AbiKHUms (ORCPT ); Tue, 8 Nov 2022 15:42:48 -0500 Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED7AD67133; Tue, 8 Nov 2022 12:42:47 -0800 (PST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2A8HQofl032334; Tue, 8 Nov 2022 12:42:29 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=b/uyn2DhR1Fdqjkrf+V8LcqMK8HBEi7P55ivfn8OZUs=; b=GIIIoD9XCt6N9ez/gbiwMItqwwvQI8dS5oAEasbN8TBGAIMgUOAEzd1dzwpoFcsQIXiP DJ4s0TQWC02F7ktSvvDb1VaX48YRNf9Tg9Hi0XTvF25gFrPy33DuJy8WciedRIqXBqv9 7eb7nnMEMSfwnDs92SAIsyzsOs07gN8GMF8olwRoEYJ0EHx073B9DYToKOBbOy2zk3iX 7qke/DrmI2NVruCpu9zapyiwYCv+D7TrUoqLolVv086QAToq0o4caisQodoYJhs9u/Dx Y0E4k5WYeVmCYfnsjLSvRi583D9bnLWl2IRCpjP6OjYb826iBSW9q2+pl3WSoBq70+ay sQ== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3kquh58svt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 08 Nov 2022 12:42:29 -0800 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Tue, 8 Nov 2022 12:42:27 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 8 Nov 2022 12:42:26 -0800 Received: from sburla-PowerEdge-T630.caveonetworks.com (unknown [10.106.27.217]) by maili.marvell.com (Postfix) with ESMTP id 834523F7089; Tue, 8 Nov 2022 12:42:26 -0800 (PST) From: Veerasenareddy Burru To: , , , , , CC: , Veerasenareddy Burru , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , "Jonathan Corbet" , Lorenzo Bianconi , Andrew Lunn Subject: [PATCH net-next 0/8] Add octeon_ep_vf driver Date: Tue, 8 Nov 2022 12:41:51 -0800 Message-ID: <20221108204209.23071-1-vburru@marvell.com> X-Mailer: git-send-email 2.36.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: d1UMSbNckWYHQkkCwzt-C5QmC0JnggPU X-Proofpoint-ORIG-GUID: d1UMSbNckWYHQkkCwzt-C5QmC0JnggPU X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-07_11,2022-11-08_01,2022-06-22_01 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This driver implements networking functionality of Marvell's Octeon PCI Endpoint NIC VF. This driver support following devices: * Network controller: Cavium, Inc. Device b203 * Network controller: Cavium, Inc. Device b403 Veerasenareddy Burru (8): octeon_ep_vf: Add driver framework and device initialization octeon_ep_vf: add hardware configuration APIs octeon_ep_vf: add VF-PF mailbox communication. octeon_ep_vf: add Tx/Rx ring resource setup and cleanup octeon_ep_vf: add support for ndo ops octeon_ep_vf: add Tx/Rx processing and interrupt support octeon_ep_vf: add ethtool support octeon_ep_vf: update MAINTAINERS .../ethernet/marvell/octeon_ep_vf.rst | 19 + MAINTAINERS | 9 + drivers/net/ethernet/marvell/Kconfig | 1 + drivers/net/ethernet/marvell/Makefile | 1 + .../net/ethernet/marvell/octeon_ep_vf/Kconfig | 19 + .../ethernet/marvell/octeon_ep_vf/Makefile | 9 + .../marvell/octeon_ep_vf/octep_vf_cn9k.c | 489 +++++++ .../marvell/octeon_ep_vf/octep_vf_config.h | 155 +++ .../marvell/octeon_ep_vf/octep_vf_ethtool.c | 307 +++++ .../marvell/octeon_ep_vf/octep_vf_main.c | 1136 +++++++++++++++++ .../marvell/octeon_ep_vf/octep_vf_main.h | 305 +++++ .../marvell/octeon_ep_vf/octep_vf_mbox.c | 358 ++++++ .../marvell/octeon_ep_vf/octep_vf_mbox.h | 137 ++ .../marvell/octeon_ep_vf/octep_vf_regs_cn9k.h | 154 +++ .../marvell/octeon_ep_vf/octep_vf_rx.c | 508 ++++++++ .../marvell/octeon_ep_vf/octep_vf_rx.h | 199 +++ .../marvell/octeon_ep_vf/octep_vf_tx.c | 335 +++++ .../marvell/octeon_ep_vf/octep_vf_tx.h | 242 ++++ 18 files changed, 4383 insertions(+) create mode 100644 Documentation/networking/device_drivers/ethernet/marvell/octeon_ep_vf.rst create mode 100644 drivers/net/ethernet/marvell/octeon_ep_vf/Kconfig create mode 100644 drivers/net/ethernet/marvell/octeon_ep_vf/Makefile create mode 100644 drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_cn9k.c create mode 100644 drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_config.h create mode 100644 drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_ethtool.c create mode 100644 drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_main.c create mode 100644 drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_main.h create mode 100644 drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_mbox.c create mode 100644 drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_mbox.h create mode 100644 drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_regs_cn9k.h create mode 100644 drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_rx.c create mode 100644 drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_rx.h create mode 100644 drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_tx.c create mode 100644 drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_tx.h base-commit: ee1bfbcc71cfac3b570365558cf38cb70f6ca971 -- 2.36.0