From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jiri Pirko Subject: Re: [patch net-next v3 05/10] net: sched: move TC_H_MAJ macro call into tcf_auto_prio Date: Wed, 17 May 2017 07:47:52 +0200 Message-ID: <20170517054752.GB1832@nanopsycho> References: <20170516172802.1317-1-jiri@resnulli.us> <20170516172802.1317-6-jiri@resnulli.us> <20170516210346.GS1939@nanopsycho.orion> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Linux Kernel Network Developers , David Miller , Jamal Hadi Salim , David Ahern , Eric Dumazet , Stephen Hemminger , Daniel Borkmann , Alexander Duyck , Simon Horman , mlxsw@mellanox.com To: Cong Wang Return-path: Received: from mail-wr0-f196.google.com ([209.85.128.196]:34303 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752293AbdEQFrz (ORCPT ); Wed, 17 May 2017 01:47:55 -0400 Received: by mail-wr0-f196.google.com with SMTP id 6so215883wrb.1 for ; Tue, 16 May 2017 22:47:54 -0700 (PDT) Content-Disposition: inline In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: Wed, May 17, 2017 at 12:38:08AM CEST, xiyou.wangcong@gmail.com wrote: >On Tue, May 16, 2017 at 2:03 PM, Jiri Pirko wrote: >> Tue, May 16, 2017 at 11:01:52PM CEST, xiyou.wangcong@gmail.com wrote: >>>On Tue, May 16, 2017 at 10:27 AM, Jiri Pirko wrote: >>>> From: Jiri Pirko >>>> >>>> Call the helper from the function rather than to always adjust the >>>> return value of the function. >>> >>>And rename the function name to reflect this change? >> >> ? What do you suggest? > >tcf_auto_major_prio()? That makes no sense. prio is passed from user in upper 2 bytes (god knows why but that is how it is). The helper returns prio, that's it. Nothing major about it...