From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tejun Heo Subject: Re: [PATCH v3 7/8] cgroup: Assign subsystem IDs during compile time Date: Tue, 11 Sep 2012 14:04:35 -0700 Message-ID: <20120911210435.GA7677@google.com> References: <1347380774-9546-1-git-send-email-wagi@monom.org> <1347380774-9546-8-git-send-email-wagi@monom.org> Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=M9ZYcsslvzb5s2/WlHwaXQ5IEy7PtMS0hwX5pHWe9ag=; b=NqUWXRFAlN3fiWeCa1iJbJFMVWYn6lKca11WTCkzIlTqsNeNOJQbkDAncQf2wn4wGb OUpQu1J/Z1zh5maoiL7z7PXcuu/jmxqbKPwGyhm5eWvF0c04fHfyB7OH+Y57ep10Oz4N 4w4a86Wkv4hXleBim2/J8M1f5U4D6DPOj5UG1eYcQbw1cagXARlpPCmc7hgL26eutdfQ EZiKc9aM/fHqpqbQXRzPDVeIaL0vjjtWoHtIzHsr3VK2OxzeYWED3ymeK2VUbSKKp1cA Hl7/Aj1oXATfn6+V8M8n3rS6pgc4OvImJpj8qecN0UIyWfZdpONQIGHi9QTCG622LWnl FiHQ== Content-Disposition: inline In-Reply-To: <1347380774-9546-8-git-send-email-wagi-kQCPcA+X3s7YtjvyW6yDsg@public.gmane.org> Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Daniel Wagner Cc: netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Daniel Wagner , "David S. Miller" , Andrew Morton , Eric Dumazet , Gao feng , Glauber Costa , Jamal Hadi Salim , John Fastabend , Kamezawa Hiroyuki , Li Zefan , Neil Horman Hello, Daniel. One more thing. On Tue, Sep 11, 2012 at 06:26:13PM +0200, Daniel Wagner wrote: > From: Daniel Wagner > > WARNING: With this change it is not possible to load external built > controllers anymore. > > In case where CONFIG_NETPRIO_CGROUP=m and CONFIG_NET_CLS_CGROUP=m is > set, the type of the corresponding subsys_id should also be of type > enum. Up to now, net_prio_subsys_id and net_cls_subsys_id would be an > int in this configuration. > > With switching the macro definition IS_SUBSYS_ENABLED from IS_BUILTIN > to IS_ENABLED, the subsys_id will always be enum for all > subsystems. That means we need to remove all the code which assumes > that net_prio_subsys_id and net_cls_subsys_id is of type int. I don't think int or enum is the matter here. enum is an int. It's whether the ID is allocated statically or dynamically. Can you please update the description using those terms instead? Thanks. -- tejun