From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [Cake] [PATCH net-next v2] Add Common Applications Kept Enhanced (cake) qdisc Date: Tue, 24 Apr 2018 08:11:26 -0700 Message-ID: <20180424081126.2e2f830a@xeon-e3> References: <1512338775-3270-1-git-send-email-dave.taht@gmail.com> <20180424114407.5939-1-toke@toke.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: netdev@vger.kernel.org, cake@lists.bufferbloat.net To: Toke =?UTF-8?B?SMO4aWxhbmQtSsO4cmdlbnNlbg==?= Return-path: Received: from mail-pf0-f175.google.com ([209.85.192.175]:35712 "EHLO mail-pf0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751095AbeDXPL3 (ORCPT ); Tue, 24 Apr 2018 11:11:29 -0400 Received: by mail-pf0-f175.google.com with SMTP id j5so12511898pfh.2 for ; Tue, 24 Apr 2018 08:11:29 -0700 (PDT) In-Reply-To: <20180424114407.5939-1-toke@toke.dk> Sender: netdev-owner@vger.kernel.org List-ID: On Tue, 24 Apr 2018 13:44:06 +0200 Toke H=C3=B8iland-J=C3=B8rgensen wrote: > +struct tc_cake_xstats { > + __u16 version; > + __u16 tin_stats_size; /* =3D=3D sizeof(struct tc_cake_tin_stats) */ > + __u32 capacity_estimate; > + __u32 memory_limit; > + __u32 memory_used; > + __u8 tin_cnt; > + __u8 avg_trnoff; > + __u16 max_netlen; > + __u16 max_adjlen; > + __u16 min_netlen; > + __u16 min_adjlen; > + > + __u16 spare1; > + __u32 spare2; > + > + struct tc_cake_tin_stats tin_stats[0]; /* keep last */ > +}; No versioning allowed in userspace API. You need to drop version and make it permanent.