From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Dumazet Subject: Re: [PATCH net-next 08/13] net/mlx5e: Add fragmented memory support for RX multi packet WQE Date: Mon, 14 Mar 2016 13:29:46 -0700 Message-ID: <1457987386.31401.11.camel@edumazet-glaptop3.roam.corp.google.com> References: <1457703594-9482-1-git-send-email-saeedm@mellanox.com> <1457703594-9482-9-git-send-email-saeedm@mellanox.com> <1457706771.2663.37.camel@edumazet-ThinkPad-T530> <1457726319.2663.50.camel@edumazet-ThinkPad-T530> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: Saeed Mahameed , Saeed Mahameed , "David S. Miller" , Linux Netdev List , Or Gerlitz , Eran Ben Elisha , Tal Alon , Tariq Toukan , Jesper Dangaard Brouer To: achiad shochat Return-path: Received: from mail-pf0-f169.google.com ([209.85.192.169]:34501 "EHLO mail-pf0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753263AbcCNU3s (ORCPT ); Mon, 14 Mar 2016 16:29:48 -0400 Received: by mail-pf0-f169.google.com with SMTP id x3so49739392pfb.1 for ; Mon, 14 Mar 2016 13:29:48 -0700 (PDT) In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Mon, 2016-03-14 at 21:16 +0200, achiad shochat wrote: > I really do not see why the new scheme is more DOSable than the common > scheme of pre-allocating SKB using napi_alloc_skb(). Because sizeof(skb_shared_info) is big enough that if you allocate 128 bytes, you end up using 512 bytes or even more. In practice it is good enough.