From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Wang Subject: Re: [RFC] testpmd: handle UFO packets Date: Thu, 1 Mar 2018 16:36:30 +0800 Message-ID: References: <1519464907-133452-1-git-send-email-jianfeng.tan@intel.com> <098ad68d-20af-7646-7be3-ea260333960b@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Cc: stephen@networkplumber.org, Bruce Richardson , Tiwei Bie To: "Tan, Jianfeng" , dev@dpdk.org 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) In-Reply-To: Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 > >