From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f43.google.com (mail-wg0-f43.google.com [74.125.82.43]) by dpdk.org (Postfix) with ESMTP id D5FA6ADF8 for ; Wed, 4 Feb 2015 10:26:09 +0100 (CET) Received: by mail-wg0-f43.google.com with SMTP id y19so569815wgg.2 for ; Wed, 04 Feb 2015 01:26:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=P/mMiB4Uvh1j7rXHnRL2sc9vzzoCG1mU296JfS0fPxs=; b=bb1jy++PpugTP3YuLksXx3Y6vHgw3/QYW+jxZSCrc+qn3GqkXC1txWGtANaa1+crBE 7Tga0lBZiH40cJDqK0IlqsW1ej5CyWE33AS4HqI9VpPMU4s+RoB0awVXJ3I3Evev3Sm7 BvyFIlpkNilqMrSoebjYytFxQz6SRCNuSYui9gKBtaztR9gKosgJChZrF8aNo5I0sUcZ z3iY2ki9BCvlRr8Roca3CORXl8LS3wHxv24HJKA16KiWV++d1ijV0fml4QWfUAR3mp03 7+r4TbJ076RW+J9HmiDFrm99FychLVtrbX46RpHpSNhlIRkXgoeA9IQb7rE2hkui4srN FZuA== X-Gm-Message-State: ALoCoQkR3cbLiYkG9yy+NROv7DBkGFuqUYwfmabf5QGS2dDrIru+YREhpVEqnf/BxFSNjpRg/z9i X-Received: by 10.194.2.75 with SMTP id 11mr65067272wjs.78.1423041969755; Wed, 04 Feb 2015 01:26:09 -0800 (PST) Received: from glumotte.dev.6wind.com (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id a13sm2346491wic.3.2015.02.04.01.26.07 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 04 Feb 2015 01:26:09 -0800 (PST) From: Olivier Matz To: dev@dpdk.org Date: Wed, 4 Feb 2015 10:25:25 +0100 Message-Id: <1423041925-26956-21-git-send-email-olivier.matz@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1423041925-26956-1-git-send-email-olivier.matz@6wind.com> References: <1422623775-8050-1-git-send-email-olivier.matz@6wind.com> <1423041925-26956-1-git-send-email-olivier.matz@6wind.com> Subject: [dpdk-dev] [PATCH v2 20/20] i40e: add debug logs for tx context descriptors X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Feb 2015 09:26:10 -0000 This could be useful to have this values for debug purposes. Suggested-by: Konstantin Ananyev Signed-off-by: Olivier Matz --- lib/librte_pmd_i40e/i40e_rxtx.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/lib/librte_pmd_i40e/i40e_rxtx.c b/lib/librte_pmd_i40e/i40e_rxtx.c index 3031bd7..349c1e5 100644 --- a/lib/librte_pmd_i40e/i40e_rxtx.c +++ b/lib/librte_pmd_i40e/i40e_rxtx.c @@ -1298,6 +1298,18 @@ i40e_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts, uint16_t nb_pkts) ctx_txd->l2tag2 = rte_cpu_to_le_16(cd_l2tag2); ctx_txd->type_cmd_tso_mss = rte_cpu_to_le_64(cd_type_cmd_tso_mss); + + PMD_TX_LOG(DEBUG, "mbuf: %p, TCD[%u]:\n" + "tunneling_params: %#x;\n" + "l2tag2: %#hx;\n" + "rsvd: %#hx;\n" + "type_cmd_tso_mss: %#lx;\n", + tx_pkt, tx_id, + ctx_txd->tunneling_params, + ctx_txd->l2tag2, + ctx_txd->rsvd, + ctx_txd->type_cmd_tso_mss); + txe->last_id = tx_last; tx_id = txe->next_id; txe = txn; @@ -1315,6 +1327,16 @@ i40e_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts, uint16_t nb_pkts) /* Setup TX Descriptor */ slen = m_seg->data_len; buf_dma_addr = RTE_MBUF_DATA_DMA_ADDR(m_seg); + + PMD_TX_LOG(DEBUG, "mbuf: %p, TDD[%u]:\n" + "buf_dma_addr: %#"PRIx64";\n" + "td_cmd: %#x;\n" + "td_offset: %#x;\n" + "td_len: %u;\n" + "td_tag: %#x;\n", + tx_pkt, tx_id, buf_dma_addr, + td_cmd, td_offset, slen, td_tag); + txd->buffer_addr = rte_cpu_to_le_64(buf_dma_addr); txd->cmd_type_offset_bsz = i40e_build_ctob(td_cmd, td_offset, slen, td_tag); -- 2.1.4