From patchwork Thu Oct 7 18:43:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srikanth Kaka X-Patchwork-Id: 100796 X-Patchwork-Delegate: rasland@nvidia.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C3F8BA034F; Fri, 8 Oct 2021 12:58:33 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6F049411D7; Fri, 8 Oct 2021 12:56:29 +0200 (CEST) Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) by mails.dpdk.org (Postfix) with ESMTP id 69AF041217 for ; Thu, 7 Oct 2021 20:45:30 +0200 (CEST) Received: by mail-pf1-f172.google.com with SMTP id g14so6101012pfm.1 for ; Thu, 07 Oct 2021 11:45:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oneconvergence.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PoOj4M3To1wqtDBWzaqTNywpCSLTQtuJJ6/r8Aamx74=; b=fIazBhc9E9qPgf0mZPZsJXr9UGHoNx9sB57KAEusHnP36ytq3gn8WHm65aiwkTLiHf bMi0Js6SpyQsa9ucrVdDb9IrxbltbKp1/LiD7KjHTlHkWup8z6wjrT5UFA+6/ZVwJihk 9z2nkFBEpN1zETcvOYu4jUfoW7fnjSJIIJcWc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=PoOj4M3To1wqtDBWzaqTNywpCSLTQtuJJ6/r8Aamx74=; b=HXA2sURhGgcC/AE3XFAhdsHebOUBXW0bUVx8ZXNoVr2a2UMpXHlmwai8qRtK4VZAGO nyQGensGL/nnpIwStMC/XXTF/BJa/DXAYkmz+1yp/EQsRlJpbTEljds+CpDAGs1vL6DM szxaD4kgczRSCQ/taCQ9qlzTFPfWUjF+cWmpMIRQ4C2UChEx2odTHNbB9SNOleCLMKdo YhfX0MwPaA6wxLAPW9ZPjjuRqCvZtWYUSe5rMk2EwW4CgM0pGCm+ga2YiSw4oJQamgrF VGwMb+kQuimdyH4qW9reP+shIvqVZ1xOApTvVxO4Y9kgRvBZMZIPk7lfy7JUEC8AVwvR RZPA== X-Gm-Message-State: AOAM530vAtCPm7Nrx7bbEegzynsuYOIqTBHlbZBY7eQ9uOoCVqfS7xCK 7nqPXAPGVrBPGpLoJn6yDmQ8CQ== X-Google-Smtp-Source: ABdhPJwYzfxTWDVokPI8NpbEm7ZDSsNRWdYV0Gz73JR9381i77U8WT9IlRsyTsAFbgxF+nPYk9Iq0A== X-Received: by 2002:a63:1266:: with SMTP id 38mr968712pgs.219.1633632329694; Thu, 07 Oct 2021 11:45:29 -0700 (PDT) Received: from srikanth-ThinkPad-T450.domain.name ([136.185.113.102]) by smtp.gmail.com with ESMTPSA id c11sm3311586pji.38.2021.10.07.11.45.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Oct 2021 11:45:29 -0700 (PDT) From: Srikanth Kaka To: Matan Azrad , Viacheslav Ovsiienko Cc: dev@dpdk.org, Vag Singh , Anand Thulasiram , Srikanth Kaka Date: Fri, 8 Oct 2021 00:13:37 +0530 Message-Id: <20211007184350.73858-29-srikanth.k@oneconvergence.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211007184350.73858-1-srikanth.k@oneconvergence.com> References: <20211007184350.73858-1-srikanth.k@oneconvergence.com> MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 08 Oct 2021 12:55:54 +0200 Subject: [dpdk-dev] [PATCH v2 28/41] net/mlx5: add module callbacks X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" add stubs for nodule callbacks Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/mlx5_ethdev_os.c | 39 +++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/drivers/net/mlx5/freebsd/mlx5_ethdev_os.c b/drivers/net/mlx5/freebsd/mlx5_ethdev_os.c index 48099d0fc5..db16027244 100644 --- a/drivers/net/mlx5/freebsd/mlx5_ethdev_os.c +++ b/drivers/net/mlx5/freebsd/mlx5_ethdev_os.c @@ -682,6 +682,45 @@ mlx5_is_removed(struct rte_eth_dev *dev) return 0; } +/** + * DPDK callback to retrieve plug-in module EEPROM information (type and size). + * + * @param dev + * Pointer to Ethernet device structure. + * @param[out] modinfo + * Storage for plug-in module EEPROM information. + * + * @return + * 0 on success, a negative errno value otherwise and rte_errno is set. + */ +int +mlx5_get_module_info(struct rte_eth_dev *dev, + struct rte_eth_dev_module_info *modinfo) +{ + RTE_SET_USED(dev); + RTE_SET_USED(modinfo); + return -ENOTSUP; +} + +/** + * DPDK callback to retrieve plug-in module EEPROM data. + * + * @param dev + * Pointer to Ethernet device structure. + * @param[out] info + * Storage for plug-in module EEPROM data. + * + * @return + * 0 on success, a negative errno value otherwise and rte_errno is set. + */ +int mlx5_get_module_eeprom(struct rte_eth_dev *dev, + struct rte_dev_eeprom_info *info) +{ + RTE_SET_USED(dev); + RTE_SET_USED(info); + return -ENOTSUP; +} + /** * Get MAC address by querying netdevice. *