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 B49D5A0C46; Mon, 27 Sep 2021 16:59:25 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DAE654114B; Mon, 27 Sep 2021 16:58:20 +0200 (CEST) Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) by mails.dpdk.org (Postfix) with ESMTP id 75CFE410DD for ; Mon, 27 Sep 2021 15:36:32 +0200 (CEST) Received: by mail-pg1-f172.google.com with SMTP id y186so6468158pgd.0 for ; Mon, 27 Sep 2021 06:36:32 -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=SgdVwh6R8nVElY6A3nvegWWOT9WuL7GS23dYKkVZEs4=; b=VIap9Y3LTzFBdVE28iBRJxIb/0qS8KURYd5nmf/nAtnVYy7ud23u7ZxPhEK7leJhz6 +kbdrKNwB87x1orvY4JcxYOsEWqSTQQj2pxkGAvUrwYPWhUsXGIYEBP4oCwuUbXIgcpR XxnH0fEjcP84/utOoFUZVV+4DWNMuxEocIRyE= 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=SgdVwh6R8nVElY6A3nvegWWOT9WuL7GS23dYKkVZEs4=; b=UgOTvp0+RSP/I4KNcXRgIZMujrzm4IXUiVUGLW3iIzI2JwOMmHrT1WUk86kKkRwNud MevPkxGu1ewMR74e/jAXGU8aPTtZi+IXqzKev1jVjFrdpezy/SB8Ptgmk7jYMyruhdjI gEekk52BF18LdNb5/6u0mRYXEnPsMyY8ZmFXGy3CR27C62p8htwvz2SHbcqPn67sZgBV flLrnwW4ZCbv2x5vRW1SnZOr/y8Dr8UPHhj6SPnXugS7DTEw5HgxrtePoX3DkZIOr6G4 mYh36yp0y4wG7f2oZBPY7sOo7jdgOfQA68zftaGRK4V7JSQRE7oEZcDcieflFyxjN4dn 07Zw== X-Gm-Message-State: AOAM533Ckk7y5doAhPNMXM9/zVkjY/hJnsotWTSW9xIAhMfxOfdtrKfZ dILt7/6LNF1RyAKVqgrHx6X0xg== X-Google-Smtp-Source: ABdhPJyNO0vCaXSlh1jyMd1XrPGeoNU/e5r/CXu0AW0PzFKHPmVzJWcXU234WO7yeVLrsr5fMkWVVw== X-Received: by 2002:aa7:8e56:0:b029:3cd:c2ec:6c1c with SMTP id d22-20020aa78e560000b02903cdc2ec6c1cmr64951pfr.80.1632749791709; Mon, 27 Sep 2021 06:36:31 -0700 (PDT) Received: from srikanth-ThinkPad-T450.domain.name ([223.178.22.200]) by smtp.gmail.com with ESMTPSA id t6sm17342274pfh.63.2021.09.27.06.36.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Sep 2021 06:36:31 -0700 (PDT) From: Srikanth Kaka To: Matan Azrad , Viacheslav Ovsiienko Cc: dev@dpdk.org, Vag Singh , Anand Thulasiram , Srikanth Kaka Date: Mon, 27 Sep 2021 19:04:42 +0530 Message-Id: <20210927133450.10653-12-srikanth.k@oneconvergence.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210927133450.10653-1-srikanth.k@oneconvergence.com> References: <20210927133450.10653-1-srikanth.k@oneconvergence.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Mon, 27 Sep 2021 16:58:07 +0200 Subject: [dpdk-dev] [PATCH 11/19] net/mlx5: removing port representator support 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" Removing port representator support from mlx5_get_ifname Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/mlx5_ethdev_os.c | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/drivers/net/mlx5/freebsd/mlx5_ethdev_os.c b/drivers/net/mlx5/freebsd/mlx5_ethdev_os.c index 03ae2e4aa9..268649d16c 100644 --- a/drivers/net/mlx5/freebsd/mlx5_ethdev_os.c +++ b/drivers/net/mlx5/freebsd/mlx5_ethdev_os.c @@ -131,8 +131,6 @@ struct ethtool_link_settings { /** * Get interface name from private structure. * - * This is a port representor-aware version of mlx5_get_ifname_sysfs(). - * * @param[in] dev * Pointer to Ethernet device. * @param[out] ifname @@ -145,26 +143,10 @@ int mlx5_get_ifname(const struct rte_eth_dev *dev, char (*ifname)[MLX5_NAMESIZE]) { struct mlx5_priv *priv = dev->data->dev_private; - unsigned int ifindex; MLX5_ASSERT(priv); MLX5_ASSERT(priv->sh); - if (priv->master && priv->sh->bond.ifindex > 0) { - memcpy(ifname, priv->sh->bond.ifname, MLX5_NAMESIZE); - return 0; - } - ifindex = mlx5_ifindex(dev); - if (!ifindex) { - if (!priv->representor) - return mlx5_get_ifname_sysfs(priv->sh->ibdev_path, - *ifname); - rte_errno = ENXIO; - return -rte_errno; - } - if (if_indextoname(ifindex, &(*ifname)[0])) - return 0; - rte_errno = errno; - return -rte_errno; + return mlx5_get_ifname_sysfs(priv->sh->ibdev_path, *ifname); } /** -- 2.30.2