DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] 82599 didn't calculate checksum when checksum offload is enabled
@ 2017-07-04 10:12 Yu Yang
  0 siblings, 0 replies; only message in thread
From: Yu Yang @ 2017-07-04 10:12 UTC (permalink / raw)
  To: users

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-07-04 10:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-04 10:12 [dpdk-users] 82599 didn't calculate checksum when checksum offload is enabled Yu Yang

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).