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 4982C43782; Mon, 25 Dec 2023 04:05:32 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B715D402C7; Mon, 25 Dec 2023 04:05:31 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 2AA4B40297 for ; Mon, 25 Dec 2023 04:05:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1703473529; x=1735009529; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=oEl3Xh3jQQ1kP/uxqndy7OSkQpGAyh71EM7k9qblg34=; b=c2QuOmzPJoLhIYHZi+8RyJA9h/DtoS71gDSD0dJWsDtkcuHjwq5gWzG2 w9rrDo94B+WehOq0Vs/q5oZpmiNqFZrcxFZHKJ690XnV/Kk0rSJo92pQK 1GcvgsJGE+8vFQCBFkk8HNUNgXTrmMYJW1AlPiOy6IpBpVbt2v1TM5PMn KEQA6N/ToxJKsiY4vxXe2h/2pQjrGP4H8jt75a9AL9s5ESy/ibA/N4W5Q A7vVs1C0I30uJDJWD2UygWgDurwEBpmGilPXp99MD3wn4TGXFqss8nFkp 5f9KqTzbV1w49xFg7pHX/6XnhMzL5hs3jY7KPxngMQKxSGToZFKie5qRx w==; X-IronPort-AV: E=McAfee;i="6600,9927,10934"; a="482438895" X-IronPort-AV: E=Sophos;i="6.04,302,1695711600"; d="scan'208";a="482438895" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Dec 2023 19:05:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10934"; a="950887708" X-IronPort-AV: E=Sophos;i="6.04,302,1695711600"; d="scan'208";a="950887708" Received: from unknown (HELO zhichao-dpdk..) ([10.239.252.103]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Dec 2023 19:05:26 -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: Mon, 25 Dec 2023 11:14:48 +0800 Message-Id: <20231225031451.4002181-1-zhichaox.zeng@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231221072827.1808983-1-zhichaox.zeng@intel.com> References: <20231221072827.1808983-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|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_rxtx.c | 24 ++++++- 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 | 84 +++++++++++++++++++++++++ drivers/net/iavf/meson.build | 3 + drivers/net/iavf/rte_pmd_iavf.h | 3 + drivers/net/iavf/version.map | 3 + 9 files changed, 148 insertions(+), 2 deletions(-) create mode 100644 drivers/net/iavf/iavf_testpmd.c -- 2.34.1