From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH net] net: sched: shrink struct qdisc_skb_cb to 28 bytes Date: Thu, 18 Sep 2014 09:26:28 -0700 Message-ID: <20140918092628.566eae2b@urahara> References: <1402338773-5996-1-git-send-email-_govind@gmx.com> <1402338773-5996-2-git-send-email-_govind@gmx.com> <1411052525.7106.269.camel@edumazet-glaptop2.roam.corp.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Or Gerlitz , Govindarajulu Varadarajan <_govind@gmx.com>, Yinghai Lu , David Miller , NetDev , ssujith@cisco.com, gvaradar@cisco.com, "Christian Benvenuti (benve)" To: Eric Dumazet Return-path: Received: from mail-pd0-f171.google.com ([209.85.192.171]:40155 "EHLO mail-pd0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756556AbaIRQ0j (ORCPT ); Thu, 18 Sep 2014 12:26:39 -0400 Received: by mail-pd0-f171.google.com with SMTP id y13so711204pdi.2 for ; Thu, 18 Sep 2014 09:26:39 -0700 (PDT) In-Reply-To: <1411052525.7106.269.camel@edumazet-glaptop2.roam.corp.google.com> Sender: netdev-owner@vger.kernel.org List-ID: On Thu, 18 Sep 2014 08:02:05 -0700 Eric Dumazet wrote: > From: Eric Dumazet > > We cannot make struct qdisc_skb_cb bigger without impacting IPoIB, > or increasing skb->cb[] size. > > Commit e0f31d849867 ("flow_keys: Record IP layer protocol in > skb_flow_dissect()") broke IPoIB. > > Only current offender is sch_choke, and this one do not need an > absolutely precise flow key. > > If we store 17 bytes of flow key, its more than enough. (Its the actual > size of flow_keys if it was a packed structure, but we might add new > fields at the end of it later) > > Signed-off-by: Eric Dumazet Can we add BUILD_BUG to stop next time something smacks this.