From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ua0-f171.google.com (mail-ua0-f171.google.com [209.85.217.171]) by dpdk.org (Postfix) with ESMTP id E93C55678; Sat, 3 Sep 2016 05:02:01 +0200 (CEST) Received: by mail-ua0-f171.google.com with SMTP id i32so193060723uai.2; Fri, 02 Sep 2016 20:02:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=wFK3F/UtRAK+ZEFhnWCEr0P3rNgmfVVvDo1qepBanEc=; b=zsxmUQBnLiKwzFX5W1EUsqIVMFv7Za3CKuXNNJ5xMUcF8wX5HQkxAo3o1tdQC9sWME HeGbdbClOCY7i3wxC3M/CesBsmaNwNCLOxnBG9oqzoxGEE3N1eYgmSP7dHEvxZrwnyfI /ru2fFAAlj9IQYrfnQF8guyPNKubxMyg9eEUpKDA7k+iTGdKF3oU9aLvU574VDhBCq3A oaZwEI27mG9p6AiWXzEi73WtI7iiOVmwWkNIUFuWM6vsjpYCQUI3H6PpUAMPzwFYOEu+ 1EOpzDaoVYLXy6pO2hcFdDaFBBlnKOcfhjB3eHP9un4w5jNQCDnx7TTJrfq/7xW+H3uq Ql4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=wFK3F/UtRAK+ZEFhnWCEr0P3rNgmfVVvDo1qepBanEc=; b=LXhzNKa5A+0QeSgrWZNAE12EdoAWwdlKAYHVoTizYNAZstQ8mN37ZRtbboQH2uTN4d ipm61o50IrmU6kGzijxY1ApLuPdf9IezycztdyuN1PnHEQP/lWHi0rdqRmqWYMmE0WUZ m4yr+KSt40rYzTUdHrLo5ua+/ZcJSHjw0PVpjLyTc/d1kZpg6MN+WO2766lL2jA/wa0a hjdqQ31h8VTf97CUMRxq0CcWWZk4BTbYI8nK26XcL/9w/xgNjeE9r526wtU1IJfM8sDm T5Re2knzboWmddeMXZPOz3mze74yRNloCNR4DstNCXY/aHHpDlZbukjaZvcdp9NBTT36 FsTA== X-Gm-Message-State: AE9vXwMwHapnmkKCqCe1dnWkeooPfLYnGc8wCDwmcdI9MbP2gNZqtm4WidtLR8TywYSlZT3eq9t2rpo+9rBTtQ== X-Received: by 10.176.83.110 with SMTP id y43mr14152492uay.70.1472871721319; Fri, 02 Sep 2016 20:02:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.159.39.97 with HTTP; Fri, 2 Sep 2016 20:02:00 -0700 (PDT) In-Reply-To: References: From: wei wang Date: Sat, 3 Sep 2016 11:02:00 +0800 Message-ID: To: users@dpdk.org, dev@dpdk.org Cc: Thomas Monjalon Content-Type: text/plain; charset=UTF-8 Subject: Re: [dpdk-dev] [dpdk-users] ixgbe drop all the packet 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: Sat, 03 Sep 2016 03:02:02 -0000 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 : > 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; > } > ....