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 67AA54374D; Thu, 21 Dec 2023 08:19:25 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 29AAD402F1; Thu, 21 Dec 2023 08:19:25 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 46B3D402EA for ; Thu, 21 Dec 2023 08:19:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1703143164; x=1734679164; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=e9IqT/kslhPLC4RWyEXjyGxO/PYwLQcoqzJ3QjZ45V0=; b=B4TJtkAlHxNOfcTX/5r8/1pn4+jTGKDBOAzANBlVVkuECTMonkswkRtM w0Mgw8UCToGHCbck/pLz7+oZjrHNuLQ5tGT6Nw32v5S7FZ/O4ID+YH+cs HgvhtbDhH0hpTyiYXr7C8LJZ0t1nk/N2DZ2ZZfU5mvJ9gcCMVxClxL7Gg AkxldyqZyPx0pLbQm028Tm7p0e3VqKPVTEZvk203GpQrDM0X7HGpn3ptp S6lr/zXSByRramqbYebIB8JOsMhpguDBYlHnv+gE8Iyebe2wLEflNI1CT qHjcfANQIISoHU7HgZAJlMiJWOju3/BbQ0WdHD9ZsSVWaAhVsZvuup3Tr A==; X-IronPort-AV: E=McAfee;i="6600,9927,10930"; a="386359053" X-IronPort-AV: E=Sophos;i="6.04,293,1695711600"; d="scan'208";a="386359053" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Dec 2023 23:19:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10930"; a="949825651" X-IronPort-AV: E=Sophos;i="6.04,293,1695711600"; d="scan'208";a="949825651" Received: from unknown (HELO zhichao-dpdk..) ([10.239.252.103]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Dec 2023 23:19:04 -0800 From: Zhichao Zeng To: dev@dpdk.org Cc: qi.z.zhang@intel.com, Zhichao Zeng Subject: [PATCH v4 0/3] net/iavf: support Tx LLDP on scalar and AVX512 Date: Thu, 21 Dec 2023 15:28:24 +0800 Message-Id: <20231221072827.1808983-1-zhichaox.zeng@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231220093239.1148174-2-zhichaox.zeng@intel.com> References: <20231220093239.1148174-2-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|off" which will register an mbuf dynfield IAVF_TX_LLDP_DYNFIELD, currently only supported turning on. IAVF will fill the SWTCH_UPLINK bit in the Tx context descriptor based on the mbuf dynfield to send the LLDP packet. For avx512, need to close the Tx port first, then "set tx lldp on", and reopen the port to select correct Tx path. --- 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/rel_notes/release_24_03.rst | 3 + drivers/net/iavf/iavf_ethdev.c | 1 + drivers/net/iavf/iavf_rxtx.c | 21 ++++++- drivers/net/iavf/iavf_rxtx.h | 6 ++ drivers/net/iavf/iavf_rxtx_vec_avx512.c | 19 ++++++ drivers/net/iavf/iavf_rxtx_vec_common.h | 5 ++ drivers/net/iavf/iavf_testpmd.c | 82 +++++++++++++++++++++++++ drivers/net/iavf/meson.build | 3 + 8 files changed, 138 insertions(+), 2 deletions(-) create mode 100644 drivers/net/iavf/iavf_testpmd.c -- 2.34.1