From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by dpdk.org (Postfix) with ESMTP id 9F157101B for ; Thu, 1 Mar 2018 09:36:39 +0100 (CET) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id DF812402314E; Thu, 1 Mar 2018 08:36:38 +0000 (UTC) Received: from [10.72.12.137] (ovpn-12-137.pek2.redhat.com [10.72.12.137]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3CC682026E04; Thu, 1 Mar 2018 08:36:34 +0000 (UTC) To: "Tan, Jianfeng" , dev@dpdk.org Cc: stephen@networkplumber.org, Bruce Richardson , Tiwei Bie References: <1519464907-133452-1-git-send-email-jianfeng.tan@intel.com> <098ad68d-20af-7646-7be3-ea260333960b@redhat.com> From: Jason Wang Message-ID: Date: Thu, 1 Mar 2018 16:36:30 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Thu, 01 Mar 2018 08:36:38 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Thu, 01 Mar 2018 08:36:38 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'jasowang@redhat.com' RCPT:'' Subject: Re: [dpdk-dev] [RFC] testpmd: handle UFO packets X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Mar 2018 08:36:39 -0000 On 2018年02月28日 22:53, Tan, Jianfeng wrote: > Hi Jason, > > > On 2/28/2018 10:10 PM, Jason Wang wrote: >> >> >> On 2018年02月24日 17:35, Jianfeng Tan wrote: >>> Mostly likely, we will make UFO as a kind of GSO engine. >>> >>> For short term, we can just call APIs in librte_ip_frag to fragment. >>> >>> To test: >>> >>> 1. start testpmd with two vhost port. >>>   $ set fwd csum >>>   $ start >>> >>> 2. start vm0 connected to vhost0; >>>   $ ifconfig xxx 1.1.1.1/24 up >>>   $ ethtool -K xxx ufo on >>> >>> 3. start vm1 connected to vhost1; >>>   $ ifconfig xxx 1.1.1.2/24 up >>>   $ ethtool -K xxx ufo on >>>   $ (Fill a large file named 1.txt) >>>   $ cat 1.txt | socat - udp-sendto:1.1.1.1:5000 >> >> Just a reminder, UFO was completely removed upstream. >> > > Thank you for the information. > > Saw the deprecation patch at Linux v4.16-rc3, wonder what "version+" > counts "merden kernels" in "modern kernels will no longer generate UFO > skbs"? git describe d9d30adf56777c402c0027c0e6ae21f17cc0a365 v4.12-11055-gd9d30ad So I think any Linux version beyond 4.12 won't generate any UFO packets. > And this is mostly for stock VMs with old kernels to help the > migration from kernel vswitch to user space vswitch. > Yes, testpmd may still see UFO packets for old kernels. Just a reminder in case you miss it. (Btw, we plan to support UDP tunnel offload for virtio-net.) > Will other OSes generate UFO packets, FreeBSD, Windows? Anyone can > provide such information? I don't know about them. Thanks. > > Thanks, > Jianfeng > >