From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C5E1BA034F; Fri, 8 Oct 2021 12:58:43 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 83E59411E4; Fri, 8 Oct 2021 12:56:31 +0200 (CEST) Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.178]) by mails.dpdk.org (Postfix) with ESMTP id DE234411E0 for ; Thu, 7 Oct 2021 20:45:35 +0200 (CEST) Received: by mail-pg1-f178.google.com with SMTP id r2so642523pgl.10 for ; Thu, 07 Oct 2021 11:45:35 -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=EMUU1hgADJ8mOzBjj38rQF0ZHUxwKe81TRzYLJCJQ9c=; b=cDqyygNW742L7aVSw/ArflVP4NJ+3sTdzKZ9deEWc+1IqHkGEROBjJFGzlOIq5EcoS lLHI1jjzj8bYgJzl1/2Zyg647y/sbekxMJ9oDmUdmxTOAxGkQL1vGVRKXG83seIqIGpu 8SWAfCZuuDvMoWbmwVuUIua3yS68mzjJHITtk= 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=EMUU1hgADJ8mOzBjj38rQF0ZHUxwKe81TRzYLJCJQ9c=; b=b+XLrHcZQ52VLpe2a7cGELd8omVAB3xkS6FK/RMUEDMaC77hlBSpjnTQEfmjGu42FM JVOdk9Dsqe128yJKF+y/2Wh9kVPSyHlYL2kxD0fN3VPixmCQg/zd58BadJIQ58dY21aT m2EfSdaRItn0ZRdgmhdKCddMbzEgfKVfNubG9OzE4UUC6CwvVtNbwWSmSBlU0wSy8mLX nczxQD+mD68xdQlXuqD7RkezU/LQfdr1u6HRBJiANqLjf8JLPlupmhBsvGRvlN24yyPR pX74b51iROlCbc6SjuAvkApG7+eJBYHPqySG1cB/GpZmSDFIDjPzCSHts9ZrufPq0QgK Sn2g== X-Gm-Message-State: AOAM5338kRj5rgFkcIdSv1aNuMjBIfg8MnfynB5hW6GGEhyBmPu2cFsU lYgMKulQCqbHXWmR99788XFEBw== X-Google-Smtp-Source: ABdhPJzMGRth/D7CMDd7t2deNZFBuSqfgHZlmEufDKFEz9ra86KNilpAlNLVzGiXIX8ePDJ6jBJx8w== X-Received: by 2002:a63:de51:: with SMTP id y17mr981166pgi.235.1633632335158; Thu, 07 Oct 2021 11:45:35 -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.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Oct 2021 11:45:34 -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:39 +0530 Message-Id: <20211007184350.73858-31-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 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Fri, 08 Oct 2021 12:55:54 +0200 Subject: [dpdk-dev] [PATCH v2 30/41] net/mlx5: add stubs for bonding 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 bonding Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/mlx5_ethdev_os.c | 42 +++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/drivers/net/mlx5/freebsd/mlx5_ethdev_os.c b/drivers/net/mlx5/freebsd/mlx5_ethdev_os.c index a6e28ea4bb..f96f53f696 100644 --- a/drivers/net/mlx5/freebsd/mlx5_ethdev_os.c +++ b/drivers/net/mlx5/freebsd/mlx5_ethdev_os.c @@ -685,6 +685,48 @@ mlx5_is_removed(struct rte_eth_dev *dev) return 0; } +/** + * Get switch information associated with network interface. + * + * @param ifindex + * Network interface index. + * @param[out] info + * Switch information object, populated in case of success. + * + * @return + * 0 on success, a negative errno value otherwise and rte_errno is set. + */ +int +mlx5_sysfs_switch_info(unsigned int ifindex, struct mlx5_switch_info *info) +{ + RTE_SET_USED(ifindex); + RTE_SET_USED(info); + return -ENOTSUP; +} + +/** + * Get bond information associated with network interface. + * + * @param pf_ifindex + * Network interface index of bond interface + * @param[out] ifindex + * Pointer to bond ifindex. + * @param[out] ifname + * Pointer to bond ifname. + * + * @return + * 0 on success, a negative errno value otherwise and rte_errno is set. + */ +int +mlx5_sysfs_bond_info(unsigned int pf_ifindex, unsigned int *ifindex, + char *ifname) +{ + RTE_SET_USED(pf_ifindex); + RTE_SET_USED(ifindex); + RTE_SET_USED(ifname); + return -ENOTSUP; +} + /** * DPDK callback to retrieve plug-in module EEPROM information (type and size). * -- 2.30.2