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 44C21A034F; Fri, 8 Oct 2021 12:57:34 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 51E0941190; Fri, 8 Oct 2021 12:56:17 +0200 (CEST) Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) by mails.dpdk.org (Postfix) with ESMTP id 063AE41217 for ; Thu, 7 Oct 2021 20:45:00 +0200 (CEST) Received: by mail-pj1-f42.google.com with SMTP id kk10so5594320pjb.1 for ; Thu, 07 Oct 2021 11:44:59 -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=TkC625BngIj+tYGv3m17AaQqwOMmoQc5oxaft50RX9GdP5yJE12v3OzdzbYtrDfis1 Ikw3Ae+QiJ5SqBAz7N/9SkOY1mESjry5H3XYto/nCwiT9086N3/0oO6K20Rh1a6VPHyY /yVyLqcvzu3+cc1XYy7a6x7FnnLJGQbqhgy/4= 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=O5RcYqXsTf/FIvgJbVNFCmY682k3SYj7hGQtuYJzmbtrzm9oavXlOXkwYMVFLkCPrS KoNvn4SRV4/lmSxhBocuKSx5sZ8oJdtuaarsbnk8RWKyXTAhf+PpWVxpZv9V6TkTqjXY Eve7T1JfkgHNL8P5cStlWNl2t9tpL9H8bkc5hjh8zFo2MMcuMGqO3que/j9w7u7Yj5ul dxto3XUtikZj9IPhffPrhxr5iTAkFf3lhSlKXDZRD3Whk1LPJsl4G2oIBxmJlvqyBrdA UJF0ye9oVB1h7gRzdxktdVP1vNaX3X7N+N1i54H7nNBAvIj8iC8g7IvdpiN82mFGzZoX 9a0A== X-Gm-Message-State: AOAM531juSnqeAkSr5fMaLLL67URa2poGmnjjtnPQkuFT3DshbmrO0qJ U/fqfEGZX+zAGMTNH9wkjIKEdEkPjsVe9Q== X-Google-Smtp-Source: ABdhPJzWzMB+TI7dK97QXq0/Rl5XQTDXOpwbbTxl0gwwv3Ip9CtdrBIQiTOpiQl4hFETMDERSVZqug== X-Received: by 2002:a17:90a:7301:: with SMTP id m1mr6689487pjk.34.1633632299288; Thu, 07 Oct 2021 11:44:59 -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.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Oct 2021 11:44:58 -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:26 +0530 Message-Id: <20211007184350.73858-18-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 17/41] net/mlx5: add vlan vmwa stub 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