From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8AA8BC10F13 for ; Thu, 11 Apr 2019 13:05:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 609E22133D for ; Thu, 11 Apr 2019 13:05:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726629AbfDKNFN (ORCPT ); Thu, 11 Apr 2019 09:05:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55698 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726538AbfDKNFM (ORCPT ); Thu, 11 Apr 2019 09:05:12 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CD85888E51; Thu, 11 Apr 2019 13:05:12 +0000 (UTC) Received: from carbon (ovpn-200-23.brq.redhat.com [10.40.200.23]) by smtp.corp.redhat.com (Postfix) with ESMTP id B2FAC19C58; Thu, 11 Apr 2019 13:05:05 +0000 (UTC) Date: Thu, 11 Apr 2019 15:05:04 +0200 From: Jesper Dangaard Brouer To: Matteo Croce Cc: netdev@vger.kernel.org, Sunil Goutham , Robert Richter , linux-arm-kernel@lists.infradead.org, Ilias Apalodimas , David Miller , brouer@redhat.com Subject: Re: [PATCH v3 2/2] net: thunderx: don't allow jumbo frames with XDP Message-ID: <20190411150504.2be998aa@carbon> In-Reply-To: <20190411102633.3685-3-mcroce@redhat.com> References: <20190411102633.3685-1-mcroce@redhat.com> <20190411102633.3685-3-mcroce@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Thu, 11 Apr 2019 13:05:12 +0000 (UTC) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Thu, 11 Apr 2019 12:26:33 +0200 Matteo Croce wrote: > The thunderx driver forbids to load an eBPF program if the MTU is too high, > but this can be circumvented by loading the eBPF, then raising the MTU. > > Fix this by limiting the MTU if an eBPF program is already loaded. > > Fixes: 05c773f52b96e ("net: thunderx: Add basic XDP support") > Signed-off-by: Matteo Croce LGTM Acked-by: Jesper Dangaard Brouer -- Best regards, Jesper Dangaard Brouer MSc.CS, Principal Kernel Engineer at Red Hat LinkedIn: http://www.linkedin.com/in/brouer