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 BC810A034F; Fri, 8 Oct 2021 12:59:27 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BF42441212; Fri, 8 Oct 2021 12:56:40 +0200 (CEST) Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) by mails.dpdk.org (Postfix) with ESMTP id BC79F411E0 for ; Thu, 7 Oct 2021 20:46:00 +0200 (CEST) Received: by mail-pj1-f51.google.com with SMTP id nn3-20020a17090b38c300b001a03bb6c4ebso3387080pjb.1 for ; Thu, 07 Oct 2021 11:46:00 -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=4HbTc2iA7a8HWo1V13cpoxjo0FU6G9qo4r4uwE/eRUw=; b=EQ5i/joXU6EJO1J0m4VwS7/E21dpS4w/YAogv7VTryqi3BS+tuBJV+7xp75Fw4esDz ffmjWAAZ6cG9Mp3udc7t4wt4EukYs04TWVW3qIsEWfNxAyxJi/vrZCG5rTwcPvoa9nMC 9EqeyT6NvVX5lSIHprEjypwSuFqPtn1cuV2tU= 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=4HbTc2iA7a8HWo1V13cpoxjo0FU6G9qo4r4uwE/eRUw=; b=dqh1B0z4KSeRkD6ChGB6CjBd29EhR2XbXLVI7n/B4LimQqjnd5iSvvuiaYSJH9DMkA jJRSC+mFmBRxxTTz5Br89ISJJtUKXtc6CFQKfjSIfp8zRblbRfezTAYg/Mzp9seCAuqv pSjc3o0hLG3n8tdOERm9UfpAcXmF+CGqyj10QqJfvFFykvrzKKbdSMQBD0rWo5+hXpSf 9LJxQLaJuEgOAcy9obEJ7+RqW4lo4IiWZ292VxCRpWvyMiPD3tRdvqDb57Li3cebXEIT Y7C3yMHIG+WzJwuamD8lehWra/9PMAj4tYgueRbaLTLy2uqgVQlKpzPvzRdRO5ie8dDw +uFQ== X-Gm-Message-State: AOAM533ZBLSemLjqMpkXpIRoSLdFBdbgx31WMbJF/4hTA9n57QDEw5rJ 0zhCf0A/xjpGQwQ3ZIqMTA1uCA== X-Google-Smtp-Source: ABdhPJwGtdRgTHMBmmDuWTdFKT0muSyuJR9DDrnK0ir1CRCJxNmVyTUjxh8cm9Ctqr3h0098LfmFnQ== X-Received: by 2002:a17:90a:7d0f:: with SMTP id g15mr7243682pjl.227.1633632360039; Thu, 07 Oct 2021 11:46:00 -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.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Oct 2021 11:45:59 -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:48 +0530 Message-Id: <20211007184350.73858-40-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 39/41] common/mlx5: add stub for mlx5_translate_port_name 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 stub for mlx5_translate_port_name Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/common/mlx5/freebsd/mlx5_common_os.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/drivers/common/mlx5/freebsd/mlx5_common_os.c b/drivers/common/mlx5/freebsd/mlx5_common_os.c index aa3b73f8a8..3026f93083 100644 --- a/drivers/common/mlx5/freebsd/mlx5_common_os.c +++ b/drivers/common/mlx5/freebsd/mlx5_common_os.c @@ -62,6 +62,26 @@ mlx5_get_pci_addr(const char *dev_path, struct rte_pci_addr *pci_addr) return 0; } +/** + * Extract port name, as a number, from sysfs or netlink information. + * + * @param[in] port_name_in + * String representing the port name. + * @param[out] port_info_out + * Port information, including port name as a number and port name + * type if recognized + * + * @return + * port_name field set according to recognized name format. + */ +void +mlx5_translate_port_name(const char *port_name_in, + struct mlx5_switch_info *port_info_out) +{ + RTE_SET_USED(port_name_in); + RTE_SET_USED(port_info_out); +} + /** * Derive IB dev index from devpath */ -- 2.30.2