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 431AC4256E; Mon, 11 Sep 2023 12:48:18 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 335BA40608; Mon, 11 Sep 2023 12:48:18 +0200 (CEST) Received: from agw.arknetworks.am (agw.arknetworks.am [79.141.165.80]) by mails.dpdk.org (Postfix) with ESMTP id AD955402AA; Mon, 11 Sep 2023 12:48:16 +0200 (CEST) Received: from localhost.localdomain (unknown [37.252.90.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by agw.arknetworks.am (Postfix) with ESMTPSA id 22A61E0F0C; Mon, 11 Sep 2023 14:48:16 +0400 (+04) DKIM-Filter: OpenDKIM Filter v2.11.0 agw.arknetworks.am 22A61E0F0C DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arknetworks.am; s=default; t=1694429296; bh=0wjGHVcB/b828oxQjca6skED5xVtUBKlT6P3UXIjgk4=; h=From:To:Cc:Subject:Date:From; b=FIKpczIiFxPAIIZ8SpY/4vOUpTFvoMKONiXTxLtWS1IUkc8ZFcyLUQoRSOT+PGOGR Y3oMROlFeOhfaYO9Dj9D1R1nRTrvgpeHb5L3TL3rGRhzllLtQy63E5BAACsQvX3SyP V64SydejFMdfodtADFfoSeCEey2CL4Ft0FDY7arkmvvHDDuFwkxcRP+qKz3K0q7JVu cZ8VymN53qUGWtDop1+4paOl5b55Tob+ZMOWETxg4KTNfuqAYuH3XNphvuWpfrzSDl fzvBBTJEKODj8RlOitAVQ6PgqpjfGEVQsuyxwrzvdgJcbswxLhGJpIMongglftGGHP 5D5XXqmVMbqFg== From: Viacheslav Galaktionov To: dev@dpdk.org Cc: stable@dpdk.org, Ivan Malov , Andy Moreton , Andrew Rybchenko Subject: [PATCH] net/sfc: account for data offset on Tx Date: Mon, 11 Sep 2023 14:47:41 +0400 Message-ID: <20230911104739.31452-3-viacheslav.galaktionov@arknetworks.am> X-Mailer: git-send-email 2.42.0 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 Memory buffers passed by the application may contain private data, which must not be sent to the NIC. Omit this private data by using the actual data address instead of the default one. Fixes: 3037e6cf3dde ("net/sfc: support regioned NIC DMA memory mapping type") Cc: stable@dpdk.org Signed-off-by: Viacheslav Galaktionov Reviewed-by: Ivan Malov Reviewed-by: Andy Moreton --- drivers/net/sfc/sfc_ef100_tx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/sfc/sfc_ef100_tx.c b/drivers/net/sfc/sfc_ef100_tx.c index 4c2205f7a4..1b6374775f 100644 --- a/drivers/net/sfc/sfc_ef100_tx.c +++ b/drivers/net/sfc/sfc_ef100_tx.c @@ -405,7 +405,7 @@ sfc_ef100_tx_qdesc_send_create(const struct sfc_ef100_txq *txq, m->l2_len + m->l3_len) >> 1; } - rc = sfc_ef100_tx_map(txq, rte_mbuf_data_iova_default(m), + rc = sfc_ef100_tx_map(txq, rte_mbuf_data_iova(m), rte_pktmbuf_data_len(m), &dma_addr); if (unlikely(rc != 0)) return rc; -- 2.42.0