[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <412e6f7f0911100314i33d6a49dl5163b5e8472babcf@mail.gmail.com>
Date: Tue, 10 Nov 2009 19:14:32 +0800
From: Changli Gao <xiaosuo@...il.com>
To: Eric Dumazet <eric.dumazet@...il.com>
Cc: "David S. Miller" <davem@...emloft.net>, netdev@...r.kernel.org,
Tom Herbert <therbert@...gle.com>
Subject: Re: [PATCH] ifb: add multi-queue support
2009/11/10 Eric Dumazet <eric.dumazet@...il.com>:
> Changli Gao a écrit :
>> 2009/11/10 Eric Dumazet <eric.dumazet@...il.com>:
>>> Not sure how to solve this problem (several cpus can updates counter in //)
>>>
>> Thanks, and follow your suggestions. I can maintain the counter per TX
>> queue, and update it in a timer handler like ixgbe or implement our
>> own struct net_device_stats* (*ndo_get_stats)(struct net_device *dev),
>> and update the counters when it gets called.
>
> Please no timer stuff :)
The whole ifb.c file is attached, please review and test it. Thanks!
--
Regards,
Changli Gao(xiaosuo@...il.com)
Download attachment "ifb.c" of type "application/octet-stream" (9063 bytes)
Powered by blists - more mailing lists