From: Paul Emmerich <emmericp@net.in.tum.de>
To: dev@dpdk.org
Subject: [dpdk-dev] [PATCH 2/3] ixgbe: use crc checksum disable flag
Date: Mon, 15 Feb 2016 17:55:24 +0100 [thread overview]
Message-ID: <1455555325-20046-3-git-send-email-emmericp@net.in.tum.de> (raw)
In-Reply-To: <1455555325-20046-1-git-send-email-emmericp@net.in.tum.de>
Signed-off-by: Paul Emmerich <emmericp@net.in.tum.de>
---
lib/librte_pmd_ixgbe/ixgbe_rxtx.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/librte_pmd_ixgbe/ixgbe_rxtx.c b/lib/librte_pmd_ixgbe/ixgbe_rxtx.c
index 57c9430..800e224 100644
--- a/lib/librte_pmd_ixgbe/ixgbe_rxtx.c
+++ b/lib/librte_pmd_ixgbe/ixgbe_rxtx.c
@@ -730,8 +730,9 @@ ixgbe_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts,
* are only set in the last Data Descriptor:
* - IXGBE_TXD_CMD_RS
*/
- cmd_type_len = IXGBE_ADVTXD_DTYP_DATA |
- IXGBE_ADVTXD_DCMD_IFCS | IXGBE_ADVTXD_DCMD_DEXT;
+ cmd_type_len = IXGBE_ADVTXD_DTYP_DATA | IXGBE_ADVTXD_DCMD_DEXT;
+ if (!(ol_flags & PKT_TX_NO_CRC_CSUM))
+ cmd_type_len |= IXGBE_ADVTXD_DCMD_IFCS;
#ifdef RTE_LIBRTE_IEEE1588
if (ol_flags & PKT_TX_IEEE1588_TMST)
--
1.9.1
next prev parent reply other threads:[~2016-02-15 16:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-15 16:55 [dpdk-dev] [PATCH 0/3] add flag to disable CRC checksum offloading Paul Emmerich
2016-02-15 16:55 ` [dpdk-dev] [PATCH 1/3] add tx crc disable flag Paul Emmerich
2016-03-04 9:18 ` Olivier MATZ
2016-02-15 16:55 ` Paul Emmerich [this message]
2016-02-15 16:55 ` [dpdk-dev] [PATCH 3/3] i40e: use crc checksum " Paul Emmerich
2016-03-02 21:15 ` [dpdk-dev] [PATCH 0/3] add flag to disable CRC checksum offloading Bruce Richardson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1455555325-20046-3-git-send-email-emmericp@net.in.tum.de \
--to=emmericp@net.in.tum.de \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).