[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4701B925.5090606@trash.net>
Date: Tue, 02 Oct 2007 05:21:09 +0200
From: Patrick McHardy <kaber@...sh.net>
To: Corey Hickey <bugfood-ml@...ooh.org>
CC: Linux Netdev List <netdev@...r.kernel.org>
Subject: Re: [PATCH 10/10] Use nested compat attributes to pass parameters.
Corey Hickey wrote:
> Patrick McHardy wrote:
>
>>> + nest = RTA_NEST_COMPAT(skb, TCA_OPTIONS, sizeof(opt), &opt);
>>> +
>>> + RTA_PUT_U32(skb, TCA_SFQ_QUANTUM, q->quantum);
>>> + RTA_PUT_U32(skb, TCA_SFQ_PERTURB, q->perturb_period);
>>> + RTA_PUT_U32(skb, TCA_SFQ_LIMIT, q->limit);
>>> + RTA_PUT_U32(skb, TCA_SFQ_DIVISOR, q->hash_divisor);
>>> + RTA_PUT_U32(skb, TCA_SFQ_FLOWS, q->depth);
>>> RTA_PUT(skb, TCA_OPTIONS, sizeof(opt), &opt);
>>
>>
>>
>> This is wrong, RTA_NEST_COMPAT already dumps the structure.
>
>
> You mean that last line (RTA_PUT) is superfluous, right?
Exactly.
> Much thanks for the review. I'll make a new set of patches soon.
Thanks.
-
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