[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAM_iQpXj6Pk3moYVKzj8YhmPz74fBgvVt4RxRMgW=+-p5MKnEg@mail.gmail.com>
Date: Tue, 4 Nov 2014 17:05:54 -0800
From: Cong Wang <xiyou.wangcong@...il.com>
To: Stephen Hemminger <stephen@...workplumber.org>
Cc: Linux Kernel Network Developers <netdev@...r.kernel.org>
Subject: Re: [PATCH 02/13] net_sched: introduce qdisc_peek() helper function
On Tue, Nov 4, 2014 at 10:45 AM, Stephen Hemminger
<stephen@...workplumber.org> wrote:
> On Tue, 4 Nov 2014 09:56:25 -0800
> Cong Wang <xiyou.wangcong@...il.com> wrote:
>
>> +static inline void qdisc_warn_nonwc(void *func, struct Qdisc *qdisc)
>> +{
>> + if (!(qdisc->flags & TCQ_F_WARN_NONWC)) {
>> + pr_warn("%pf: %s qdisc %X: is non-work-conserving?\n",
>> + func, qdisc->ops->id, qdisc->handle >> 16);
>> + qdisc->flags |= TCQ_F_WARN_NONWC;
>> + }
>> +}
>> +
>
> Inilining this and creating N copies of same message is not a step forward.
Hmm, I think gcc merges same string literals when building Linux kernel?
But I never verify this.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists