From patchwork Mon Apr 8 21:06:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matteo Croce X-Patchwork-Id: 10890165 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 850EE13B5 for ; Mon, 8 Apr 2019 21:06:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6A34F287E8 for ; Mon, 8 Apr 2019 21:06:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5E8E1287EA; Mon, 8 Apr 2019 21:06:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1420E287E8 for ; Mon, 8 Apr 2019 21:06:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=CJNvAUOJYiwt+GMD34mLgWWetztJ+6s+8QRPTToNWAQ=; b=FA1j6Zt+/kr8Cn zVEmqpMj8yNSjlAapzNT/OJiL0pqhC4bawxRbFyTICoYaHIgmxrJ8Mh54h2ujsib+760L0QItvcb4 ixllzkr5uJMvSbyi+s9FF2E8aow0X6r/tWgb8kbz6YX7RYnQLpBvsUWQUMH6xsg1JRCGNQ99RQjDp gUbNGhwVVFdJII5Q3Nihfjnkwo0bEZ8HBcjC7hc6iIgDyeVscTxrzYfLOzya1Dmbtc9VN8rQZGBdF dARmRUlitJhN6Sw9dKJQAmg9QZvOTola5i2IuYwSu7L0h4sv4p55ccTKqKBBRv2E2QaN3U7p5OEyn rcjMm5yZr6AEQJexcu7Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hDbTh-0008F5-Lh; Mon, 08 Apr 2019 21:06:53 +0000 Received: from mail-wm1-f52.google.com ([209.85.128.52]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hDbTe-0008Ei-Bv for linux-arm-kernel@lists.infradead.org; Mon, 08 Apr 2019 21:06:51 +0000 Received: by mail-wm1-f52.google.com with SMTP id n25so819436wmk.4 for ; Mon, 08 Apr 2019 14:06:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=j3uk8CWpFc5udNNP7whvOlREfExMJ432cXpyNaUskuo=; b=cN6DY4/tBGFRmvFe0SdCE6uytc2vnZOnnrv8KjU4QbJzeGOOdpeHHIEkkeAvEWLqVU PCkaoIDwdgfgRe9YKeEWMzcvSlNPbXGKRWOJ85POP9oHy5NemiTIfFNxCYInUBKK5fE2 kPVCRr30UbvjuabrsRPKlYhxdZEmdO5Tqpy/CvM3JrfiA84cmClyp88Odc6jVjFQXlPH op2+cF9Gu708LA9VScGDWYpskrUqcsthGMCH5AiKGl4U3hHxW1L43RVdr5UqdCykUlIl ZgnQ7pI2lLRNOiAcrs0UFO/3p2eljuI4mWnu1QrlGx/O23HuRspSBl49srCK1cSHBusI Ej8w== X-Gm-Message-State: APjAAAUFKdyftefkBcDTuzUcxCkbWbDcdWsVRZZmZ+V4GeNKnFjxcpqN qdVch6/L5YCKFKhdbwaX2vkBBQ== X-Google-Smtp-Source: APXvYqyaYXiTCI07WJW9FICCBNAeQqJ1YwJ0y9GfY92SSVZo51JxQ+70VHFhg5/B7S2cJyn1wE0OTg== X-Received: by 2002:a1c:7e10:: with SMTP id z16mr18037713wmc.117.1554757608779; Mon, 08 Apr 2019 14:06:48 -0700 (PDT) Received: from raver.teknoraver.net (net-93-70-69-135.cust.vodafonedsl.it. [93.70.69.135]) by smtp.gmail.com with ESMTPSA id p3sm46870744wrx.71.2019.04.08.14.06.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 08 Apr 2019 14:06:48 -0700 (PDT) From: Matteo Croce To: netdev@vger.kernel.org Subject: [PATCH net v2 0/2] Fix thunderx MTU with XDP Date: Mon, 8 Apr 2019 23:06:45 +0200 Message-Id: <20190408210647.7385-1-mcroce@redhat.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190408_140650_408454_455A732B X-CRM114-Status: UNSURE ( 7.50 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ilias Apalodimas , Sunil Goutham , Robert Richter , linux-arm-kernel@lists.infradead.org, Jesper Dangaard Brouer Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The thunderx driver can't use XDP with all MTU values. This patches sets the right MTU values, and add a check to avoid setting a wrong value which will not function. Matteo Croce (2): net: thunderx: raise XDP MTU to 1508 net: thunderx: don't allow jumbo frames with XDP .../net/ethernet/cavium/thunder/nicvf_main.c | 22 +++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-)