From patchwork Mon Feb 3 14:22:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Flavio Leitner X-Patchwork-Id: 1232802 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=sysclose.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=sysclose.org header.i=@sysclose.org header.a=rsa-sha256 header.s=201903 header.b=uXwCGoKI; dkim=fail reason="signature verification failed" (2048-bit key) header.d=sysclose.org header.i=@sysclose.org header.a=rsa-sha256 header.s=201903 header.b=llB3jFI+; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48B95m3lvsz9sPK for ; Tue, 4 Feb 2020 01:22:50 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id E42B08495A; Mon, 3 Feb 2020 14:22:47 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7lI1Gf9ar277; Mon, 3 Feb 2020 14:22:47 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by fraxinus.osuosl.org (Postfix) with ESMTP id 3FC5284627; Mon, 3 Feb 2020 14:22:47 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 20DCDC1D81; Mon, 3 Feb 2020 14:22:47 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists.linuxfoundation.org (Postfix) with ESMTP id AFAD9C0174 for ; Mon, 3 Feb 2020 14:22:45 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 9738D84F57 for ; Mon, 3 Feb 2020 14:22:45 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Z+ToEaLnne8p for ; Mon, 3 Feb 2020 14:22:44 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sysclose.org (smtp.sysclose.org [69.164.214.230]) by whitealder.osuosl.org (Postfix) with ESMTPS id 9ADA984397 for ; Mon, 3 Feb 2020 14:22:44 +0000 (UTC) Received: by sysclose.org (Postfix, from userid 5001) id 19D554129; Mon, 3 Feb 2020 14:23:26 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 sysclose.org 19D554129 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sysclose.org; s=201903; t=1580739807; bh=1V6yuglLc/hE1/WubTwMw3VJ1FbY1RcHzi3ee7bL8J8=; h=From:To:Cc:Subject:Date:From; b=uXwCGoKIGw+W77UkTJR/xoKxzpAEgkK0r+6yDioY5AQ7qH0RnFhU3CQgolOvekTyL hx4xjJhEjoSt/8EcckwaAiY64jS2RZtAPwyw6DTD8OeZ68M9jTXko8TehcPbfqW4TP UfLJ9e0IRYV8w1sg+qt/9nslDt6z5lp1bJuQZ+vDqOKqH+cPDDQSLkGv6UcxE1u7PQ sceXWv7nwM8AzCj/YVQC6HR8aMBbWAYsV4uTEVeG/qfRqcWcVYpk/eKms1HDIuqvu8 44QTaMuemCKHqpksK0z4jy6i4s4XIyRuV9+7YzGJohK0N17DToMeUt0UrU+RwoA8F6 0fnwhtz0xqpGQ== Received: from localhost (unknown [177.183.214.111]) by sysclose.org (Postfix) with ESMTPSA id 1106F35C4; Mon, 3 Feb 2020 14:23:24 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 sysclose.org 1106F35C4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sysclose.org; s=201903; t=1580739805; bh=1V6yuglLc/hE1/WubTwMw3VJ1FbY1RcHzi3ee7bL8J8=; h=From:To:Cc:Subject:Date:From; b=llB3jFI+Nuhjtj7dmOkHHkX+H+OMNjxl9WLl6HZZhlemeS9cbxtgNRd3dkO4ZC6eU mJrJdHetRKKlv9dEdORLn2OQUDeuOxbRCn1WaW5Y6LJf76xsicYnzcPdEX4mvm/W3D Zj6Q+cImUJ1snAKoFow060+3pNjkaIfIoSewg1dkQVTUFCNvYoK7D+bkgxIrULgd8h 2hVjObcbNaYK84lyLWBbXBwNATV60VgreDHQaDNk94KNOjijgyO/50f5XPlG2/H/ts tRHYjrackpbPwx8losos/pNZlXsVQoCS3hU8Scl2fcbrCJaTGQKoI95ci2E24nu8jd wEgjRAlbGppIw== From: Flavio Leitner To: dev@openvswitch.org Date: Mon, 3 Feb 2020 11:22:22 -0300 Message-Id: <20200203142222.11152-1-fbl@sysclose.org> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Cc: Ilya Maximets , Flavio Leitner , txfh2007 Subject: [ovs-dev] [PATCH] netdev-linux-private: fix max length to be 16 bits X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" The dp_packet length is limited to 16 bits, so document that and fix the length value accordingly. Fixes: 29cf9c1b3b9c ("userspace: Add TCP Segmentation Offload support") Signed-off-by: Flavio Leitner --- lib/netdev-linux-private.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/netdev-linux-private.h b/lib/netdev-linux-private.h index 143616ca8..be2d7b10b 100644 --- a/lib/netdev-linux-private.h +++ b/lib/netdev-linux-private.h @@ -38,7 +38,8 @@ struct netdev; -#define LINUX_RXQ_TSO_MAX_LEN 65536 +/* The maximum packet length is 16 bits */ +#define LINUX_RXQ_TSO_MAX_LEN 65535 struct netdev_rxq_linux { struct netdev_rxq up;