From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 10CA4A046B for ; Wed, 26 Jun 2019 15:45:16 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7A18A1E25; Wed, 26 Jun 2019 15:45:15 +0200 (CEST) Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) by dpdk.org (Postfix) with ESMTP id 7F722F64 for ; Wed, 26 Jun 2019 15:45:13 +0200 (CEST) Received: by mail-wr1-f41.google.com with SMTP id p11so2813006wre.7 for ; Wed, 26 Jun 2019 06:45:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Zew0dcvEJm/rDJ9O8P/JY2BVIOOxCsUNm3tUIqqS5do=; b=TypnBzH5jnThK+8hb2ly4I021luU3wuyy6eYenexgq/FPJ1bWmARrCHJTabqmpe3B0 RirkWOYV3mlgSZkjUFTqeTrgot3kKllMhDn9BcEHrebwEqE4364zkSFBx1HUTx3bFI5o sgiHd9ET+YpD146WlN0GXt/8lCGfPEl64Jzdf/2jD53ZpkUXOG50bKSuruK2yGzrc48w YPePt6QPuE3pMy9jFh+mUQPlsv+JsMSJn3WS12lHJpNaESfTQhGzP4OGbBf0l5os72IM nT3bmmxaWvKx6GcjuH2jfJ5mV1ZlWe+AsXFHVcFG/Tz3DXY3hlOWgWnljBuZnsreY0g2 HA7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Zew0dcvEJm/rDJ9O8P/JY2BVIOOxCsUNm3tUIqqS5do=; b=DoZCnsF5BtEKzbPTeycO1fUBCjf94wGd8z0WoN69Fv8dEBaLqePtlDfMxbQif2UmFx +LTNFf1vgrC6PvLy3sdJj2ch5VnZ/vO238oLxOJxoc6rHzdeyZ+OileY3pBY2w0mH337 iX3euStmz1pUgpOaaqCC5jsGqdjdml0ROD24dUtk1PJVaqbqTtG2PXOJ0kApnXc3QMz/ 3QHYAyvJu0PZkcxV/TUmXnA//16TcRv3iNYPThfgdn8dLWAO1/704J1jrPTMCMYs8abZ MrtUcFqaGbf0WTM2WLNM8igSQU7TANQ4rEqUMDri3shaZZMZyGm0+ykspT5IIeH5TUrN TObg== X-Gm-Message-State: APjAAAXDm/4p/CNRLb7FWMBkfXQQYwmxiDtIXvTWzX++QLs1wvVDPKPu lhyF8WoYwUO5B3VmRS7kBpQTM7IbvsKxl85ULoQCIYnwJZk= X-Google-Smtp-Source: APXvYqyKMYWthTXoT8pkfuoRHN8MZCTHnTvhIZEemP91dtYkbtSGXIWRMVVii7CK/EVqJD99M21wexCFkWZPpQpCX4Y= X-Received: by 2002:a5d:6a42:: with SMTP id t2mr3797905wrw.352.1561556712877; Wed, 26 Jun 2019 06:45:12 -0700 (PDT) MIME-Version: 1.0 From: Suchetha p Date: Wed, 26 Jun 2019 19:15:01 +0530 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] IPV4 and VLAN RX packets from NIC donot have the mbuf offload flag set resulting in packet drop - DPDK X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" After upgrading the DPDK and RHEL OS to latest version I observe that offload flags were not set in the packets received from NIC for eth type VLAN and IPV4.Can this be a Driver issue ?How to fix this? It was required to explicitly set the offload flags in the ingress VLAN and IPV4 packets. if (ETHER_TYPE_VLAN == eth_type) { m->ol_flags |= PKT_RX_VLAN_PKT; } if (ETHER_TYPE_IPv4 == eth_type) { m->ol_flags |= PKT_RX_IPV4_HDR; } If these offload flags were not set in the mbuf the packet would get dropped and will not be forwarded to the Tap device. But the offload flag setting per NIC received packet in the application is causing some performance issue and delay in data transfer. TCP segment loss,retransmissions and TX Tap drops were observed. These changes with respect to offload flag setting for RX VLAN and IPV4 packets were not required with old DPDK and RHEL6 and packets were getting forwarded from NIC to Tap device and vice versa without any issue. So is anything changed with respect to DPDK and RHEL 7 for ingress packets ?Any configuration changes required with new DPDK to instruct the Hardware to set the offload flags ? Is it required to set CKSUM/ offload flags for TCP packets with new DPDK 18.08 to avoid TCP segment loss /DUP ACK and retransmissions? Please suggest.