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 7675FA034F; Wed, 31 Mar 2021 11:17:25 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0C7284069E; Wed, 31 Mar 2021 11:17:25 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 0BA0540141 for ; Wed, 31 Mar 2021 11:17:22 +0200 (CEST) IronPort-SDR: byGgLwVHikzMvi/WcAMhKOsc4kIPiD2nhZk8LUrR6ObYrlFiaTknm+9dmrr+QrQyoKaKuMXla8 Aor21Px7JlDw== X-IronPort-AV: E=McAfee;i="6000,8403,9939"; a="189727829" X-IronPort-AV: E=Sophos;i="5.81,293,1610438400"; d="scan'208";a="189727829" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Mar 2021 02:17:21 -0700 IronPort-SDR: 0e+xz/HsB4gdGroMXHT6bmMbP2jYdVStS3Lm0OTct/YVaPrlAjiT0k5H0qVUmJfg46Hgx3cgx6 drtg2iGRrsCw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,293,1610438400"; d="scan'208";a="418580618" Received: from dpdk-lrong-srv-04.sh.intel.com ([10.67.119.221]) by orsmga008.jf.intel.com with ESMTP; 31 Mar 2021 02:17:19 -0700 From: Leyi Rong To: qi.z.zhang@intel.com, beilei.xing@intel.com Cc: dev@dpdk.org, Leyi Rong Date: Wed, 31 Mar 2021 16:53:45 +0800 Message-Id: <20210331085345.6290-1-leyi.rong@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [PATCH] net/i40e: add Tx preparation for vector data path 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" Fill up dev->tx_pkt_prepare to i40e_pkt_prepare when on vector and simple data path selection, as the sanity check is needed ideally. Signed-off-by: Leyi Rong --- drivers/net/i40e/i40e_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c index 61cb204be2..b3d7765e3b 100644 --- a/drivers/net/i40e/i40e_rxtx.c +++ b/drivers/net/i40e/i40e_rxtx.c @@ -3412,7 +3412,7 @@ i40e_set_tx_function(struct rte_eth_dev *dev) PMD_INIT_LOG(DEBUG, "Simple tx finally be used."); dev->tx_pkt_burst = i40e_xmit_pkts_simple; } - dev->tx_pkt_prepare = NULL; + dev->tx_pkt_prepare = i40e_prep_pkts; } else { PMD_INIT_LOG(DEBUG, "Xmit tx finally be used."); dev->tx_pkt_burst = i40e_xmit_pkts; -- 2.17.1