From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rick Jones Subject: Re: [PATCH net-next 2/4] mlx4: xdp: Allow raising MTU up to one page minus eth and vlan hdrs Date: Fri, 2 Dec 2016 16:07:09 -0800 Message-ID: References: <1480721013-1047541-1-git-send-email-kafai@fb.com> <1480721013-1047541-3-git-send-email-kafai@fb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: Alexei Starovoitov , Brenden Blanco , Daniel Borkmann , David Miller , Saeed Mahameed , Tariq Toukan , Kernel Team To: Martin KaFai Lau , netdev@vger.kernel.org Return-path: Received: from g4t3425.houston.hpe.com ([15.241.140.78]:25788 "EHLO g4t3425.houston.hpe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753440AbcLCAHL (ORCPT ); Fri, 2 Dec 2016 19:07:11 -0500 In-Reply-To: <1480721013-1047541-3-git-send-email-kafai@fb.com> Sender: netdev-owner@vger.kernel.org List-ID: On 12/02/2016 03:23 PM, Martin KaFai Lau wrote: > When XDP prog is attached, it is currently limiting > MTU to be FRAG_SZ0 - ETH_HLEN - (2 * VLAN_HLEN) which is 1514 > in x86. > > AFAICT, since mlx4 is doing one page per packet for XDP, > we can at least raise the MTU limitation up to > PAGE_SIZE - ETH_HLEN - (2 * VLAN_HLEN) which this patch is > doing. It will be useful in the next patch which allows > XDP program to extend the packet by adding new header(s). Is mlx4 the only driver doing page-per-packet? rick jones