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 9CD5C43807; Wed, 3 Jan 2024 08:37:20 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6AAFE402DD; Wed, 3 Jan 2024 08:37:20 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 1EE894013F for ; Wed, 3 Jan 2024 08:37:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1704267438; x=1735803438; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=w5Bpx0oabp73jDP+J8yfNRliOGLDBX1tponf6ujBaTU=; b=iq4MLcJ9VZWNeUQGOZA+cZvqHDQah40tgsfZRVSdmdDHem/mOkR3M2qC cFs/WNSXpu0+u1rhIXbDfX42+fL7VdjvXoKryN4wDj8rRAlmv1eNwlbj9 PHNvvd04LqqMOJ45b8tdtcZ5StrKcVuvUWo514zq7sldigXf1HC2zbhiv 3wYMuJGB1zpUJkyUepkYqzFjwWftrJeahyByeshN5PzB4Mtj6Hhm4mB5K wu/cdkNhwlDQNz4xYJWeZsuYhlbgs2P9oeUVjTwygPiQ3/5rrk0/UX5hq tbgYzV+SpUaXFffYtJHs4KiUQ1NcvNFlaojn3DozaRGO044m/ZH96/Ilf A==; X-IronPort-AV: E=McAfee;i="6600,9927,10941"; a="387428597" X-IronPort-AV: E=Sophos;i="6.04,327,1695711600"; d="scan'208";a="387428597" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jan 2024 23:37:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10941"; a="779912955" X-IronPort-AV: E=Sophos;i="6.04,327,1695711600"; d="scan'208";a="779912955" Received: from unknown (HELO zhichao-dpdk..) ([10.239.252.103]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jan 2024 23:37:15 -0800 From: Zhichao Zeng To: dev@dpdk.org Cc: qi.z.zhang@intel.com, Zhichao Zeng Subject: [PATCH v6 0/3] net/iavf: support Tx LLDP on scalar and AVX512 Date: Wed, 3 Jan 2024 15:47:18 +0800 Message-Id: <20240103074721.832061-1-zhichaox.zeng@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231228032211.1127554-1-zhichaox.zeng@intel.com> References: <20231228032211.1127554-1-zhichaox.zeng@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 This patch set adds an IAVF testpmd command "set tx lldp on" which will register an mbuf dynfield IAVF_TX_LLDP_DYNFIELD to indicate the need to test TX LLDP packet. It needs to stop and restart Tx port to select correct Tx path. IAVF will fill the SWTCH_UPLINK bit in the Tx context descriptor based on the mbuf dynfield to transmit the LLDP packet. --- v6: check dynfield before access v5: check dynfield at dev_start v4: fix compile error v3: non-lldp packet do not use the context descriptor v2: split into patch set, refine commit log Zhichao Zeng (3): net/iavf: support Tx LLDP on scalar net/iavf: support Tx LLDP on AVX512 net/iavf: add Tx LLDP command doc/guides/nics/intel_vf.rst | 17 ++++++ drivers/net/iavf/iavf_ethdev.c | 5 ++ drivers/net/iavf/iavf_rxtx.c | 18 +++++- drivers/net/iavf/iavf_rxtx.h | 11 ++++ drivers/net/iavf/iavf_rxtx_vec_avx512.c | 16 +++++ drivers/net/iavf/iavf_rxtx_vec_common.h | 5 ++ drivers/net/iavf/iavf_testpmd.c | 81 +++++++++++++++++++++++++ drivers/net/iavf/meson.build | 3 + 8 files changed, 154 insertions(+), 2 deletions(-) create mode 100644 drivers/net/iavf/iavf_testpmd.c -- 2.34.1