From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jiri Pirko Subject: Re: [patch net-next v3 01/10] net: sched: move tc_classify function to cls_api.c Date: Tue, 16 May 2017 23:00:38 +0200 Message-ID: <20170516210038.GR1939@nanopsycho.orion> References: <20170516172802.1317-1-jiri@resnulli.us> <20170516172802.1317-2-jiri@resnulli.us> 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-wm0-f66.google.com ([74.125.82.66]:35612 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750799AbdEPVAl (ORCPT ); Tue, 16 May 2017 17:00:41 -0400 Received: by mail-wm0-f66.google.com with SMTP id v4so40831515wmb.2 for ; Tue, 16 May 2017 14:00:40 -0700 (PDT) Content-Disposition: inline In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: Tue, May 16, 2017 at 10:25:35PM CEST, xiyou.wangcong@gmail.com wrote: >On Tue, May 16, 2017 at 10:27 AM, Jiri Pirko wrote: >> From: Jiri Pirko >> >> Move tc_classify function to cls_api.c where it belongs, rename it to >> fit the namespace. >> > >It is not a pure move, you silently remove the CONFIG_NET_CLS_ACT >macros in tc_classify(). Probably not buggy, just redundancy when >actions are not compiled. Plese see include/net/pkt_cls.h in this patch. If CONFIG_NET_CLS_ACT is not defined, there is a stub there.