From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vlad Yasevich Subject: Re: [PATCH net-next 0/5] virtio-net: Add SCTP checksum offload support Date: Tue, 17 Apr 2018 16:35:18 -0400 Message-ID: <6bc762f6-d6fb-5471-2893-a888cce199f9@redhat.com> References: <20180402134006.10111-1-vyasevic@redhat.com> <20180402144730.GA6001@localhost.localdomain> Reply-To: vyasevic@redhat.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, linux-sctp@vger.kernel.org, virtualization@lists.linux-foundation.org, mst@redhat.com, jasowang@redhat.com, nhorman@tuxdriver.com To: Marcelo Ricardo Leitner , Vladislav Yasevich Return-path: Received: from mx3-rdu2.redhat.com ([66.187.233.73]:34844 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752254AbeDQUfU (ORCPT ); Tue, 17 Apr 2018 16:35:20 -0400 In-Reply-To: <20180402144730.GA6001@localhost.localdomain> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 04/02/2018 10:47 AM, Marcelo Ricardo Leitner wrote: > On Mon, Apr 02, 2018 at 09:40:01AM -0400, Vladislav Yasevich wrote: >> Now that we have SCTP offload capabilities in the kernel, we can add >> them to virtio as well. First step is SCTP checksum. > > Thanks. > >> As for GSO, the way sctp GSO is currently implemented buys us nothing >> in added support to virtio. To add true GSO, would require a lot of >> re-work inside of SCTP and would require extensions to the virtio >> net header to carry extra sctp data. > > Can you please elaborate more on this? Is this because SCTP GSO relies > on the gso skb format for knowing how to segment it instead of having > a list of sizes? > it's mainly because all the true segmentation, placing data into chunks, has already happened. All that GSO does is allow for higher bundling rate between VMs. If that is all SCTP GSO ever going to do, that fine, but the goal is to do real GSO eventually and potentially reduce the amount of memory copying we are doing. If we do that, any current attempt at GSO in virtio would have to be depricated and we'd need GSO2 or something like that. This is why, after doing the GSO support, I decided not to include it. -vlad > Marcelo >