From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH net-next 7/8] net: sched: pie: add derandomization mechanism Date: Wed, 31 Oct 2018 09:38:27 -0700 Message-ID: <20181031093827.011d289c@xeon-e3> References: <1541002772-28040-1-git-send-email-lesliemonis@gmail.com> <1541002772-28040-8-git-send-email-lesliemonis@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: jhs@mojatatu.com, netdev@vger.kernel.org, tahiliani@nitk.edu.in, dhavaljkhandla26@gmail.com, hrishihiraskar@gmail.com, bmanish15597@gmail.com, sdp.sachin@gmail.com To: Leslie Monis Return-path: Received: from mail-pf1-f195.google.com ([209.85.210.195]:36527 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729341AbeKABhP (ORCPT ); Wed, 31 Oct 2018 21:37:15 -0400 Received: by mail-pf1-f195.google.com with SMTP id j22-v6so4067747pfh.3 for ; Wed, 31 Oct 2018 09:38:29 -0700 (PDT) In-Reply-To: <1541002772-28040-8-git-send-email-lesliemonis@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: On Wed, 31 Oct 2018 21:49:31 +0530 Leslie Monis wrote: > diff --git a/net/sched/sch_pie.c b/net/sched/sch_pie.c > index b68b367..88e605c 100644 > --- a/net/sched/sch_pie.c > +++ b/net/sched/sch_pie.c > @@ -58,6 +58,7 @@ struct pie_vars { > u32 avg_dq_rate; /* bytes per pschedtime tick,scaled */ > u32 qlen_old; /* in bytes */ > bool active; /* inactive/active */ > + u64 accu_prob; /* accumulated drop probability */ > }; > Although putting it at the end seems like a natural place, it creates holes in the c structure. My recommendation would be to put the new field after dq_tsstamp.