From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marek Lindner Date: Mon, 26 Nov 2012 09:15:44 +0800 References: <20121126004117.GI14547@ritirata.org> In-Reply-To: <20121126004117.GI14547@ritirata.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201211260915.44897.lindner_marek@yahoo.de> Subject: Re: [B.A.T.M.A.N.] [RFC 2/6] batman-adv: Detect coding nodes and remove these after timeout Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: The list for a Better Approach To Mobile Ad-hoc Networking Cc: Martin =?iso-8859-15?q?Hundeb=F8ll?= On Monday, November 26, 2012 08:41:17 Antonio Quartulli wrote: > > struct batadv_priv_nc { > > > > struct delayed_work work; > > > > + struct dentry *debug_dir; > > + u8 min_tq; > > If I am not mistaken min_tq is never modified. Why do we need to store it > in a bat_priv field? And being a constant is it worth a define? In this > way it an be easily found and tuned like the other constant params. It can be modified via debugfs: + file = debugfs_create_u8("min_tq", S_IRUGO | S_IWUSR, nc_dir, + &bat_priv->nc.min_tq); Cheers, Marek