From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id C5340A0096 for ; Wed, 8 May 2019 08:42:04 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2EC67374C; Wed, 8 May 2019 08:42:04 +0200 (CEST) Received: from mail-it1-f195.google.com (mail-it1-f195.google.com [209.85.166.195]) by dpdk.org (Postfix) with ESMTP id 18FE934F0 for ; Wed, 8 May 2019 08:42:02 +0200 (CEST) Received: by mail-it1-f195.google.com with SMTP id l7so2247238ite.2 for ; Tue, 07 May 2019 23:42:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bkuVNOY8kcY/FeW3Zq6oc15n07oJsYTXWgJt241QSgU=; b=pWcoMbTTyISyf1ViT97rU/08rjJnzkfChE/ukMlglMFPEU3mp2qO3BvHnUdw/BEYBT VEbCPgnZI9UA5WNCxd2IPvbHlGy+/LP/SGkw5fjlPnzXYkxvupinoN35HPl8xsebDwkx ruWwpAcBljyD77L5rFBYuxU/PZyQUzSUMwSVc0djgkF5y3fxjnkw53Xx6O8H0GJ48pte 4GzxYSbZiToAcat3xd4pMhJP9R+/aY04YKONsCXuEqYw14A1Svknpae1u0/+8AWiW+Xe 6/uKL4IO1h9m1EiU2ouPg+HcuWCGhCdmn3D1/f9ACGyi13TIWslHJp4M/z1LPwgsBuPT PNxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bkuVNOY8kcY/FeW3Zq6oc15n07oJsYTXWgJt241QSgU=; b=Wim/K+H85zeMxYJIYzYdyhtLKVb045acmgPFo0jfA5TEA2QDPvg5Wy4cDhpHoLr6xX oKIArj7IbpwWsY86SAMC1zCawSOjA98y92DScmzOL84ArPmGiGDO5HQuDk4F/eZj6OhW p223ysewt3CtTQVGFkbxAthRuPmh5k7u2NtiDj0EQ7jBR8B62E5l0UP8OkiXKNzWwBde 9zzDO0s34MD1XgYKYEek2G2I6xbAmGNVCVMEHkhevcUVfp9h2C05MkowaFVLvm0a2h/8 WfAN6VHBi9YwxO3+Fuq3T1ItJLA3FgPu90rREeeI7Ci3Tc3ad2QBZr+stM++hxvonYds a49A== X-Gm-Message-State: APjAAAVLbONmO4mTB456ZrcQiYiqCAJFH2ujluRXCyjXK0NMjzu+dgMD ZxhJjHPGpgoV65JnvKvc1YK9MLoNJCuCfO8GzFU= X-Google-Smtp-Source: APXvYqy+TIwBd+Mb3W02dd00+GjouLgPtZc/KEWEYl5e8rtNc+B8lotjS7m6tyCI4SmQMA2fq3J1jfcnPJMXU2qZGMA= X-Received: by 2002:a24:29d4:: with SMTP id p203mr2261651itp.63.1557297721355; Tue, 07 May 2019 23:42:01 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: hirok borah Date: Wed, 8 May 2019 12:11:49 +0530 Message-ID: To: Anupama Laxmi Cc: users Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] UDP packet transmission issue - DPDK 18.08 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" Hi All, Do we have any resolution for this issue yet ? This looks like a defect in DPDK 18.08. Plz share if anyone have any inputs on this issue. Regards Hirok On Sat, Apr 20, 2019 at 9:41 AM Anupama Laxmi wrote: > We have recently upgraded to DPDK 18.08 version. After upgrading to the > latest version observing issue with UDP packets transmission errors for few > packets ( UDP size 736 bytes) .With older version of DPDK we never faced > this issue. > > Attaching the filtered tcpdump which shows "Bad UDP length > IP payload > length" for one such packet. > > No issue observed while transferring UDP packets with size 28 bytes and 48 > bytes. I tried to print the packet length calculation in my program just > before sending it out to the Kernel using rte_kni_tx_burst. The packet > length calculation seems correct to me. > > 1.) > size_udp:48 > sizeof(struct udp_hdr):8 > size_ApplMsg:40 > udphdr->dgram_len:12288 > m->data_len:82 > size_ip:68 > l2_data_shift:14 > > 2.) > size_udp:28 > sizeof(struct udp_hdr):8 > size_ApplMsg:20 > udphdr->dgram_len:7168 > m->data_len:62 > ip->total_length:12288 > size_ip:48 > l2_data_shift:14 > > *** Packets with UDP size 736 are not getting transmitted to the > receiving end and getting dropped. > > 3.) > size_udp:736 > sizeof(struct udp_hdr):8 > size_ApplMsg:728 > udphdr->dgram_len:57346 > m->data_len:770 > size_ip:756 > l2_data_shift:14 > > Also MTU is set to 1500 in my program. So it shouldn't be an issue to > transfer 736 bytes UDP data which is less than 1500 bytes MTU. > > Looks like the kernel is dropping this packet. > > So I tried to increase the kernel buffer size but that didn't help. > > netstat -su -> output shows 0 send/receive buffer errors. > > > What has changed in DPDK 18.08 with respect to UDP packets? Please suggest > if I need to consider tuning udp ( using new API ) , offloading udp > traffic(new offload flags) to resolve this issue. > > Thanks, > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: bad_udp_length.png > Type: image/png > Size: 56015 bytes > Desc: not available > URL: < > http://mails.dpdk.org/archives/users/attachments/20190420/f5dd6779/attachment.png > > > -- Regards, -Hirok