[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAM_iQpVxYJanWW5OWj_SKMsxG=NmndEWCj+kLSdP2NMz+cD9rA@mail.gmail.com>
Date: Wed, 11 Oct 2017 10:30:55 -0700
From: Cong Wang <xiyou.wangcong@...il.com>
To: Roman Mashak <mrv@...atatu.com>
Cc: David Miller <davem@...emloft.net>,
Linux Kernel Network Developers <netdev@...r.kernel.org>,
Jamal Hadi Salim <jhs@...atatu.com>
Subject: Re: [PATCH net-next 2/2] net sched actions: fix module auto-loading
On Wed, Oct 11, 2017 at 7:50 AM, Roman Mashak <mrv@...atatu.com> wrote:
> Macro __stringify_1() can stringify a macro argument, however IFE_META_*
> are enums, so they never expand, however request_module expects an integer
> in IFE module name, so as a result it always fails to auto-load.
>
> Fixes: ef6980b6becb ("introduce IFE action")
> Signed-off-by: Roman Mashak <mrv@...atatu.com>
Good catch!
Alternatively, it seems we can also do this:
...
#define _IFE_META_PRIO 3
enum {
...
IFE_META_PRIO = _IFE_META_PRIO,
...
};
#define MODULE_ALIAS_IFE_META(metan) MODULE_ALIAS("ifemeta" ##_
__stringify_1(metan))
But it does _not_ look any better than yours.
So,
Acked-by: Cong Wang <xiyou.wangcong@...il.com>
Powered by blists - more mailing lists