From: Yu Yang <yyangplus@gmail.com>
To: users@dpdk.org
Subject: [dpdk-users] 82599 didn't calculate checksum when checksum offload is enabled
Date: Tue, 04 Jul 2017 10:12:40 +0000 [thread overview]
Message-ID: <CAML2tiRBVpyOuBgy6FZoz7tSqwsQ11HAt+YyyM2XMF2TwEbGzw@mail.gmail.com> (raw)
my project is an UDP server. I think the code is correct, because it works
well on an I350 NIC, but when I test on 82599, it didn't calculate checksum
at all and tcpdump running on remote machine reports bad ipv4 checksum(0)
and bad udp checksum(the pseudo-header checksum calculated by server), I
also tried disable checksum offload and use software to calculate checksum,
it works. this is my port config
struct rte_eth_conf default_port_conf = {
.rxmode = {
.mq_mode = ETH_MQ_RX_RSS,
.max_rx_pkt_len = ETHER_MAX_LEN,
.split_hdr_size = 0,
.header_split = 0, /**< Header Split disabled */
.hw_ip_checksum = 1, /**< IP checksum offload enabled */
.hw_vlan_filter = 0, /**< VLAN filtering disabled */
.jumbo_frame = 0, /**< Jumbo Frame Support disabled */
.hw_strip_crc = 1, /**< CRC stripped by hardware */
},
.rx_adv_conf = {
.rss_conf = {
.rss_key = NULL,
.rss_hf = ETH_RSS_TCP | ETH_RSS_UDP | ETH_RSS_IP |
ETH_RSS_L2_PAYLOAD,
},
},
.txmode = {
.mq_mode = ETH_MQ_TX_NONE,
},
};
dpdk version is 16.11.1
thanks
reply other threads:[~2017-07-04 10:12 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=CAML2tiRBVpyOuBgy6FZoz7tSqwsQ11HAt+YyyM2XMF2TwEbGzw@mail.gmail.com \
--to=yyangplus@gmail.com \
--cc=users@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).