From patchwork Thu Dec 28 03:22:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhichao Zeng X-Patchwork-Id: 522 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 667A4437AC; Thu, 28 Dec 2023 04:13:04 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 27651402CF; Thu, 28 Dec 2023 04:13:04 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id AEFDF402C4 for ; Thu, 28 Dec 2023 04:13:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1703733182; x=1735269182; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=luPPsJrIQ0qzHdkruE0Adu7qJIQFa9PJkRvSfDY9y/o=; b=FopNB4gaDyuJejZ9BFE6X0VqlKgakxTPS3bUxdgGB/PGFdDpZTklNARn R6jC4A9orsgJ98vZPxMQrH9GfnWmBTLOIfxr0fcxHW3yJQ1IzFnZgAN1v O5MOai1QrFIoC1HeUmAy6SBiXMMC6NNiKGMjawJVUzL6GLwJoRmcHa75T 5qVn59JioUXR6xn1h1kxGHzVpuuP1TnzFIMcD9axrKw5CM1ENsbfwZ3l2 pjg/YAt0y1Vab23B0Is7CsbCPHJj29PmccnsUAmDjiP+4I7Jp+fJmiJJ8 vkueIPFKjFpVN9/oOHJXV2L/miXksxzAvWgzSKO7FIJYEWsF7ubDsMyr6 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10936"; a="482686644" X-IronPort-AV: E=Sophos;i="6.04,310,1695711600"; d="scan'208";a="482686644" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Dec 2023 19:12:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10936"; a="807313245" X-IronPort-AV: E=Sophos;i="6.04,310,1695711600"; d="scan'208";a="807313245" Received: from unknown (HELO zhichao-dpdk..) ([10.239.252.103]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Dec 2023 19:12:45 -0800 From: Zhichao Zeng To: dev@dpdk.org Cc: qi.z.zhang@intel.com, Zhichao Zeng Subject: [PATCH v5 0/3] net/iavf: support Tx LLDP on scalar and AVX512 Date: Thu, 28 Dec 2023 11:22:07 +0800 Message-Id: <20231228032211.1127554-1-zhichaox.zeng@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231225031451.4002181-1-zhichaox.zeng@intel.com> References: <20231225031451.4002181-1-zhichaox.zeng@intel.com> MIME-Version: 1.0 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 to indicate the need to send LLDP packet. It needs to close the Tx port first, then "set tx lldp on", and reopen the port to select correct Tx path, only supports turning on for now. IAVF will fill the SWTCH_UPLINK bit in the Tx context descriptor based on the mbuf dynfield to send the LLDP packet. Acked-by: Qi Zhang --- 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/rel_notes/release_24_03.rst | 3 + drivers/net/iavf/iavf_ethdev.c | 5 ++ 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 | 81 +++++++++++++++++++++++++ drivers/net/iavf/meson.build | 3 + 8 files changed, 141 insertions(+), 2 deletions(-) create mode 100644 drivers/net/iavf/iavf_testpmd.c