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 A2B3DA034F; Fri, 8 Oct 2021 12:57:28 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D3D9F4118D; Fri, 8 Oct 2021 12:56:15 +0200 (CEST) Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by mails.dpdk.org (Postfix) with ESMTP id 59BE7411E0 for ; Thu, 7 Oct 2021 20:44:57 +0200 (CEST) Received: by mail-pl1-f170.google.com with SMTP id n2so4464828plk.12 for ; Thu, 07 Oct 2021 11:44:57 -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=CPNVQf1LCT356Y0vTz9xKzU5JcnVjWI+WLSYm/6H5Ds=; b=VQAD8GJlu97KIgtgT/rUXM6HOPn3hZIIykOOBkyDVWo8W45bVjDDnp+uny+1yfHnUN PtD8iRRLHkYttduRvblDshact2TBFWTPcRDBrxOE51mxg+q446+4P9U//C8Qn+KWq/VF 8k4fpPUOgvrOWR5W14puinvuMlb3AdfgNasSI= 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=CPNVQf1LCT356Y0vTz9xKzU5JcnVjWI+WLSYm/6H5Ds=; b=lKIUmFi4fA4fswzCql4WNc0bBoxaowA7SHkGh6kass+unTzTB7Np7PYXeyrmIpsfN8 Qaz5EsJwvcCvoBJQqag1+TwA3jWOz3oqae7x5GsAktuPDwYQSABV/2kNDHqKJ5vojZC7 zwibFCm4q73efhAH9pYdfzMh7BohzxBzCzfr2ZKqfvFowUduamSxCI099e4CWx8z4kQ/ IIC1v8prwGHH4Qv1srW0SfdVP3Zyfw046Llm1T53R1fB+qnpBlT+Y4AOEp75iLpXgF/h 9C9syYDhmN6SVNLLLkjNPJ2AG79Oltz/Jv+khD2/B2yc5Ajs6FdBUay7REZcd+zFisuA ue0w== X-Gm-Message-State: AOAM531gTV2gX4YpiGjBdjpOrLjsp33ZxsFw9GjuGqjjF9GhVhVLrsYu iwsTgA0S5MJbkgOpr1hU0RwWBw== X-Google-Smtp-Source: ABdhPJxY0TT+fl5PGNAbdNtCRitsldyYRvYzDf47WvWB/ZjQSXhef3si3lpxnAj4txOtaE7n3fj0kw== X-Received: by 2002:a17:90b:946:: with SMTP id dw6mr7467155pjb.49.1633632296598; Thu, 07 Oct 2021 11:44:56 -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.44.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Oct 2021 11:44:56 -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:25 +0530 Message-Id: <20211007184350.73858-17-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 16/41] common/mlx5: add VLAN vmwa structures 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 VLAN vmwa structures to compilation success. It is not yet supported in FreeBSD Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/common/mlx5/freebsd/mlx5_inet.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/drivers/common/mlx5/freebsd/mlx5_inet.h b/drivers/common/mlx5/freebsd/mlx5_inet.h index cc6a05928e..54ec87287d 100644 --- a/drivers/common/mlx5/freebsd/mlx5_inet.h +++ b/drivers/common/mlx5/freebsd/mlx5_inet.h @@ -12,6 +12,24 @@ #include "mlx5_common.h" +/* VLAN netdev for VLAN workaround. */ +struct mlx5_nl_vlan_dev { + uint32_t refcnt; + uint32_t ifindex; /**< Own interface index. */ +}; + +/* + * Array of VLAN devices created on the base of VF + * used for workaround in virtual environments. + */ + +struct mlx5_nl_vlan_vmwa_context { + int nl_socket; + uint32_t vf_ifindex; + rte_spinlock_t sl; + struct mlx5_nl_vlan_dev vlan_dev[4096]; +}; + int mlx5_inet_check_allmulti_flag(int inetsk_fd, char *ifname, uint16_t port_id); -- 2.30.2