From patchwork Tue Nov 8 20:41:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Veerasenareddy Burru X-Patchwork-Id: 1352 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2939974wru; Tue, 8 Nov 2022 12:47:10 -0800 (PST) X-Google-Smtp-Source: AMsMyM4ArPjk19Egj6WXRZK7ZhIhgnkszPVmnThO8AUwpfTiWAVEsoSdFHr4tVdVe4ddy4HcAIaR X-Received: by 2002:a17:907:a4e:b0:77d:94d:8148 with SMTP id be14-20020a1709070a4e00b0077d094d8148mr52492877ejc.607.1667940429836; Tue, 08 Nov 2022 12:47:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667940429; cv=none; d=google.com; s=arc-20160816; b=S8R/X4IeeWfKn22uLkehjpJqsu48ERvaGjDWIDGh8weQ9X92Jp+85RakiaXzF4ALX9 Qq25CaSIqtzhhEfDEFFsI7PdnGJwMiM5xBnEtB4IiJrmmAKoGJznx39HMXgsDFU0Dckq odx430HrChZkyMuh/YYlL5sNx349Fj9pQ88hTgUzXFnVJQX10Qao+2VeHcclseM60rLJ 5dXxqHRUA5FRCxk8om/Q7vB5qIBUuX0Q4zxX9nybUDIoladX8WUhc5vDyLO4we4WFKqO jihXZxgqYjRD1glHIU8bUHJx9NHSHLWxgG0hS4qHXPT5g+aFhuzSq6Q+GJ6AddFV/WEI 22wQ== 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 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.46.45; Tue, 08 Nov 2022 12:47:09 -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 + 99 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748962304622855026?= X-GMAIL-MSGID: =?utf-8?q?1748962304622855026?= 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