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 14:53:47 +0200 Message-ID: <20170517125347.GC9557@nanopsycho> References: <20170516172802.1317-1-jiri@resnulli.us> <20170516172802.1317-6-jiri@resnulli.us> <20170516210346.GS1939@nanopsycho.orion> <20170517054752.GB1832@nanopsycho> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Cong Wang , Linux Kernel Network Developers , David Miller , David Ahern , Eric Dumazet , Stephen Hemminger , Daniel Borkmann , Alexander Duyck , Simon Horman , mlxsw@mellanox.com To: Jamal Hadi Salim Return-path: Received: from mail-wm0-f65.google.com ([74.125.82.65]:36338 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754463AbdEQMxt (ORCPT ); Wed, 17 May 2017 08:53:49 -0400 Received: by mail-wm0-f65.google.com with SMTP id k15so2018251wmh.3 for ; Wed, 17 May 2017 05:53:49 -0700 (PDT) Content-Disposition: inline In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: Wed, May 17, 2017 at 02:47:47PM CEST, jhs@mojatatu.com wrote: >On 17-05-17 01:47 AM, Jiri Pirko wrote: >> Wed, May 17, 2017 at 12:38:08AM CEST, xiyou.wangcong@gmail.com wrote: > >[..] >> > >> > 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). > >I am not sure it is any god's decision ;-> Unless you think the creator >of this semantic is a god which in some circles is blasphemy ;-> > >16 bits for prio: 16 bits for proto - what is the problem? Should have been a struct, at least. But as you know, I always prefer a Netlink attr :)