From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6187A41DF5 for ; Mon, 6 Mar 2023 15:20:45 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5C725410EF; Mon, 6 Mar 2023 15:20:45 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id A52A140E50 for ; Mon, 6 Mar 2023 15:20:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1678112443; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DBjrR9Hd+OiZvxTXHlRrCc/B5wOR3jlZNycob2pxZSU=; b=IxH7EoaOvESRgrfFRsPU6baCVSZwaFZ6UhwwUD/Lyphx/d9RrkCaBey7jkTLXI4J6RxP3Q /v59DA1oqIUbP2IiuUbjL45I1F6kUmFDwnXqVKCaOft5UzWY4lfn2lLN79JhxFP428u74f YSLfofQZH5du25PSo8Jjb4MaQ01TTAU= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-606-3BZinjiwN4iHh1a9jd1eFA-1; Mon, 06 Mar 2023 09:20:40 -0500 X-MC-Unique: 3BZinjiwN4iHh1a9jd1eFA-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 96638183B3C0; Mon, 6 Mar 2023 14:20:39 +0000 (UTC) Received: from [10.39.208.18] (unknown [10.39.208.18]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9EC7D2166B2C; Mon, 6 Mar 2023 14:20:38 +0000 (UTC) Message-ID: <5dba0540-b2e7-77b4-30e9-51265600145c@redhat.com> Date: Mon, 6 Mar 2023 15:20:37 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH v2] net/virtio: deduce IP length for Virtio TSO checksum To: Boleslav Stankevich , dev@dpdk.org Cc: stable@dpdk.org, Andrew Rybchenko References: <20230216123554.2628837-2-boleslav.stankevich@oktetlabs.ru> <20230303111929.1833904-1-boleslav.stankevich@oktetlabs.ru> From: Maxime Coquelin In-Reply-To: <20230303111929.1833904-1-boleslav.stankevich@oktetlabs.ru> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org On 3/3/23 12:19, Boleslav Stankevich wrote: > The length of TSO payload could not fit into 16 bits provided by the > IPv4 total length and IPv6 payload length fields. Thus, deduce it > from the length of the packet. > > Fixes: 696573046e9 ("net/virtio: support TSO") > Cc: stable@dpdk.org > > Signed-off-by: Boleslav Stankevich > Reviewed-by: Andrew Rybchenko > --- > drivers/net/virtio/virtio_rxtx.c | 25 ++++++++++++++++--------- > 1 file changed, 16 insertions(+), 9 deletions(-) > Applied to dpdk-next-virtio/main. Thanks, Maxime