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 509B2A0C46; Mon, 27 Sep 2021 16:59:39 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1645241155; Mon, 27 Sep 2021 16:58:23 +0200 (CEST) Received: from mail-pg1-f170.google.com (mail-pg1-f170.google.com [209.85.215.170]) by mails.dpdk.org (Postfix) with ESMTP id 718B0410DC for ; Mon, 27 Sep 2021 15:36:37 +0200 (CEST) Received: by mail-pg1-f170.google.com with SMTP id s11so17788452pgr.11 for ; Mon, 27 Sep 2021 06:36:37 -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=ZVkr2+VZUHSP2CMBUowepHSL7KNXTTYirur2ZuZ/ZNc=; b=RWaG0jYCFcDoU+luwdY8qYXbfQs6OYzrgwuAQ/LpnGBHFdVP1B/BgZf1lRaIatNOGl ChOClM9qPZ2TjPgi8U43fx1qRdNs0mdhghbwbmG3lwKRjsqiT5g1UsDDgDvuWp6LHURg d84hQVuY98MmCoj4v7Xf8uE+fN7bWi8agCTkY= 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=ZVkr2+VZUHSP2CMBUowepHSL7KNXTTYirur2ZuZ/ZNc=; b=BeeY09wZb3+tRqFylTn1HSpaqbpAE3pFK/bcytxLlMFRDXv8BZe9sdQb1LxualH4XN Zb3PNhe1tMxHHpKKctSjYVTvbauWm3++aLO6X5Lszg8ZZd3fZ+Hq4jEnLbNLVpyQKcsx 8vRfm9USp1CZ6Vmv0Th+wDA+tpGPvDT766WMro+DKKSuuEEN7tb8hQncbZWWnhdN8P9R 1ItdKgziKykG4BWkEF/KHEQWxGdzC7fSmeOEDMFj5LFIz1iBIgDP9HhUqFVGAEGWe5dl q88JsxGZWV+e9tiEIpN4BeJs0Z+B78yFhXq8sex7qpXRttvLXDgNHPqTRjKpfKKqW4du NNsQ== X-Gm-Message-State: AOAM532dsawWDVVb68+hMEhbTm9y/EreNyNevTdPW154JE1PCF3J8/Eo V7MXl5FATI7/Tamg6Lqomr/CdA== X-Google-Smtp-Source: ABdhPJxkVoyU0GUJ5o9cFW5jNftQw+cI6JHjHOzEyYAYYQCzD85dZlMA+qIUbwjlcTkGsPUH4WOy3Q== X-Received: by 2002:a62:7887:0:b0:434:a96a:e69f with SMTP id t129-20020a627887000000b00434a96ae69fmr23610485pfc.83.1632749796676; Mon, 27 Sep 2021 06:36:36 -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.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Sep 2021 06:36:36 -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:44 +0530 Message-Id: <20210927133450.10653-14-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 13/19] net/mlx5: added placeholder for VLAN vmwa 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" VLAN workaround for ESXi is not yet supported in FreeBSD, adding placeholders Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/mlx5_vlan_os.c | 84 +++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 drivers/net/mlx5/freebsd/mlx5_vlan_os.c diff --git a/drivers/net/mlx5/freebsd/mlx5_vlan_os.c b/drivers/net/mlx5/freebsd/mlx5_vlan_os.c new file mode 100644 index 0000000000..e2e17d0406 --- /dev/null +++ b/drivers/net/mlx5/freebsd/mlx5_vlan_os.c @@ -0,0 +1,84 @@ +/* SPDX-License-Identifier: BSD-3-Clause + * Copyright 2015 6WIND S.A. + * Copyright 2015 Mellanox Technologies, Ltd + */ + +#include +#include +#include +#include + +/* + * Not needed by this file; included to work around the lack of off_t + * definition for mlx5dv.h with unpatched rdma-core versions. + */ +#include + +#include +#include + +#include +#include + +/* + * Release VLAN network device, created for VM workaround. + * + * @param[in] dev + * Ethernet device object, Netlink context provider. + * @param[in] vlan + * Object representing the network device to release. + */ +void +mlx5_vlan_vmwa_release(struct rte_eth_dev *dev, + struct mlx5_vf_vlan *vlan) +{ + RTE_SET_USED(dev); + RTE_SET_USED(vlan); +} + +/** + * Acquire VLAN interface with specified tag for VM workaround. + * + * @param[in] dev + * Ethernet device object, Netlink context provider. + * @param[in] vlan + * Object representing the network device to acquire. + */ +void +mlx5_vlan_vmwa_acquire(struct rte_eth_dev *dev, + struct mlx5_vf_vlan *vlan) +{ + RTE_SET_USED(dev); + RTE_SET_USED(vlan); +} + +/* + * Create per ethernet device VLAN VM workaround context + * + * @param dev + * Pointer to Ethernet device structure. + * @param ifindex + * Interface index. + * + * @Return + * Pointer to mlx5_nl_vlan_vmwa_context + */ +void * +mlx5_vlan_vmwa_init(struct rte_eth_dev *dev, uint32_t ifindex) +{ + RTE_SET_USED(dev); + RTE_SET_USED(ifindex); + return NULL; +} + +/* + * Destroy per ethernet device VLAN VM workaround context + * + * @param dev + * Pointer to VM context + */ +void +mlx5_vlan_vmwa_exit(void *vmctx) +{ + RTE_SET_USED(vmctx); +} -- 2.30.2