From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by dpdk.org (Postfix) with ESMTP id D2CC75AA0 for ; Fri, 30 Jan 2015 14:16:45 +0100 (CET) Received: by mail-wi0-f172.google.com with SMTP id h11so2959555wiw.5 for ; Fri, 30 Jan 2015 05:16:45 -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=AXi3UHpE0WSju3pEuy47iASOhD+AxpjR0I4NJGR8zTu1Uh3lkaGDhkvrnaPXe2L8OZ FBTJn+gheUPH38ZuzPQaw7ubMc8kcz9w9myUdGWmNlWRoJZ2FI2TJTxMQg1pCJgY/BX+ AFB5MC90NVfWOIlmwAzR0PXlUSGzjeQjHDUqJPZLu+W3Y636blm/ERw7L5BXEjnh1+h3 8lnrnkMDRLcw9xfMcTqAdM3KloXeSbOQwse3oC9nyZltPZxTWI0VmaAYsEioVqto41qo W/1WxG5G8e0Mw2yp1FPiLeMEsq8bGBhSUf6xsv/xYzo/mQYOiK1yHtcuHZUh/xxiLC6f e5uw== X-Gm-Message-State: ALoCoQmjOy5y4WXlBxby1K6Wyw7NLQ/EFNPmfBiV+lvQs3Ch0MTMiwlZyUjIYfpRE6deZrBApQgo X-Received: by 10.194.190.10 with SMTP id gm10mr11423952wjc.91.1422623805679; Fri, 30 Jan 2015 05:16:45 -0800 (PST) Received: from glumotte.dev.6wind.com (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id li7sm6911300wic.4.2015.01.30.05.16.45 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 30 Jan 2015 05:16:45 -0800 (PST) From: Olivier Matz To: dev@dpdk.org Date: Fri, 30 Jan 2015 14:16:15 +0100 Message-Id: <1422623775-8050-21-git-send-email-olivier.matz@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1422623775-8050-1-git-send-email-olivier.matz@6wind.com> References: <1421883395-27235-1-git-send-email-olivier.matz@6wind.com> <1422623775-8050-1-git-send-email-olivier.matz@6wind.com> Subject: [dpdk-dev] [PATCH 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: Fri, 30 Jan 2015 13:16:49 -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