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 75FEDA0C46; Mon, 27 Sep 2021 17:00:13 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7529841174; Mon, 27 Sep 2021 16:58:28 +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 6CDDA40E3C for ; Mon, 27 Sep 2021 15:36:50 +0200 (CEST) Received: by mail-pf1-f172.google.com with SMTP id g2so11786780pfc.6 for ; Mon, 27 Sep 2021 06:36:50 -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=8QOmrsD8ftdGTXzP7TCS3S4NJ1dlVSzW/1TVaIyIJ8s=; b=DDxgiXcNo2MbmjoZ5ZoKclP7fyoUpll0zgS/xR63Lklte+dQSO7IzV/o31qIsjh+H5 mei0BYIofiD1939D/3VmuQ7SXVdPAVDM7srbkiJiKg4y+mOmU+szTS71HZas+1rU1YMo hWWKzVSjMx7e7ixY8CpJNRo0JT2+b4/mFxH3Y= 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=8QOmrsD8ftdGTXzP7TCS3S4NJ1dlVSzW/1TVaIyIJ8s=; b=WNjBwvUULnKGmjrHxTBMiQRfPzNjjN2HqDDRe9zYsVZKWRErxuzgTF+R+5Qu5nVRgX aHkBDG9ST70lNyz3GM5EpO8DQhNH47AU+wKrSLZusuKABwoJsYOh70bVyjD1EEgYE1sB hbZNtlIUTxR+iZkW6EFM/qHDL0TclfnYhNcDigf/qJhorrRjtCpBTS+As5bTOkxU4VAp otix/YY/JMCAoi+FspZH6WCZAb8wYCbxcmJ0cGB7V58H4PLHOLXlk4qaJa+MJgxgy8vX e3EWbS5YqH3+Snu+VBGcEoYS7YzOkF86ZGqcRBg5PX5qhla+s6VST7F50dqwPcLEKPKI HQkA== X-Gm-Message-State: AOAM533RunLVm6FwPvLDMYO4hhXlFGx/ALi7roFw2eBjv2QXZ6tpQeLi 4LPRxCha0wyA2cGHOpa0gV019Q== X-Google-Smtp-Source: ABdhPJzATaNj4qCqJ/Ngb0yxIGBKsBRwF6rYwRoG33my30BjVOZ01b0W0jNd50Iwv2gyYldS4tn2TA== X-Received: by 2002:a63:788d:: with SMTP id t135mr16290331pgc.116.1632749809548; Mon, 27 Sep 2021 06:36:49 -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.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Sep 2021 06:36:49 -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:49 +0530 Message-Id: <20210927133450.10653-19-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 18/19] net/mlx5: fixed compilation warnings 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" In FreeBSD, interface name instead of index is for network stack operations The ALLMULTI is always enabled by kernel driver, we only check if the kernel has enabled it or not and then accordingly enable/disable in PMD Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/mlx5_os.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/mlx5/freebsd/mlx5_os.c b/drivers/net/mlx5/freebsd/mlx5_os.c index cf394763fa..376cceadb0 100644 --- a/drivers/net/mlx5/freebsd/mlx5_os.c +++ b/drivers/net/mlx5/freebsd/mlx5_os.c @@ -2516,6 +2516,7 @@ mlx5_os_vf_mac_addr_modify(struct mlx5_priv *priv, char ifname[IF_NAMESIZE]; int ret; + RTE_SET_USED(iface_idx); ret = mlx5_get_ifname_sysfs(priv->sh->ibdev_path, ifname); if (!ret) ret = mlx5_inet_mac_addr_set(priv->nl_socket_route, ifname, @@ -2569,6 +2570,7 @@ mlx5_os_set_allmulti(struct rte_eth_dev *dev, int enable) char ifname[IF_NAMESIZE]; int ret; + RTE_SET_USED(enable); ret = mlx5_get_ifname_sysfs(priv->sh->ibdev_path, ifname); if (!ret) ret = mlx5_inet_check_allmulti_flag(priv->nl_socket_route, -- 2.30.2