From: wei wang <lnykww@gmail.com>
To: users@dpdk.org, dev@dpdk.org
Cc: Thomas Monjalon <thomas.monjalon@6wind.com>
Subject: Re: [dpdk-users] ixgbe drop all the packet
Date: Sat, 3 Sep 2016 11:02:00 +0800 [thread overview]
Message-ID: <CAPM6dUBv4y9-qCoW_j13+6vtsKHSg28siAs782Bw-FWSkNruxg@mail.gmail.com> (raw)
In-Reply-To: <CAPM6dUBU=Tpi4mii9rnGihqR4Ojfu_DQf-zddHvqC5sP5o3UbQ@mail.gmail.com>
it seems that set fdir port conf cause the problem,just add fdir conf
in the port_conf, don't add any fdir rules.
set port conf like this in the l2fwd code.
static const struct rte_eth_conf port_conf = {
.rxmode = {
.split_hdr_size = 0,
.header_split = 0, /**< Header Split disabled */
.hw_ip_checksum = 0, /**< IP checksum offload disabled */
.hw_vlan_filter = 0, /**< VLAN filtering disabled */
.jumbo_frame = 0, /**< Jumbo Frame Support disabled */
.hw_strip_crc = 0, /**< CRC stripped by hardware */
},
.txmode = {
.mq_mode = ETH_MQ_TX_NONE,
},
.fdir_conf = {
.mode = RTE_FDIR_MODE_PERFECT,
.pballoc = RTE_FDIR_PBALLOC_64K,
.status = RTE_FDIR_REPORT_STATUS,
.mask = {
.vlan_tci_mask = 0x0,
.ipv4_mask = {
.src_ip = 0x0,
.dst_ip = 0xFFFFFFFF,
},
.ipv6_mask = {
.src_ip = {0x0, 0x0, 0x0, 0x0},
.dst_ip = {0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF},
},
.src_port_mask = 0x0,
.dst_port_mask = 0x0,
.mac_addr_byte_mask = 0xFF,
.tunnel_type_mask = 0x0,
.tunnel_id_mask = 0x0,
},
.drop_queue = 0,
},
}
if there is no fdir conf, the program at this test case was normal.
2016-09-02 18:16 GMT+08:00 wei wang <lnykww@gmail.com>:
> The issue can be reproduced with example program l2fwd by modifying it
> to sleep 1 second before launching thread.
>
>
> code like this:
> ....
> check_all_ports_link_status(nb_ports, l2fwd_enabled_port_mask);
>
> sleep(1);
> /* launch per-lcore init on every lcore */
> rte_eal_mp_remote_launch(l2fwd_launch_one_lcore, NULL, CALL_MASTER);
> RTE_LCORE_FOREACH_SLAVE(lcore_id) {
> if (rte_eal_wait_lcore(lcore_id) < 0)
> return -1;
> }
> ....
prev parent reply other threads:[~2016-09-03 3:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-01 13:48 wei wang
2016-09-02 3:57 ` wei wang
2016-09-02 10:16 ` wei wang
2016-09-03 3:02 ` wei wang [this message]
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=CAPM6dUBv4y9-qCoW_j13+6vtsKHSg28siAs782Bw-FWSkNruxg@mail.gmail.com \
--to=lnykww@gmail.com \
--cc=dev@dpdk.org \
--cc=thomas.monjalon@6wind.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).