No locking is needed ... why?

From: Kirill Ratkin (kratkin@yahoo.com)
Date: Tue Oct 09 2001 - 08:13:57 EST


Hi.

Could somebody explain me this comment?:
/*
 * Incoming packets are placed on per-cpu queues so
that
 * no locking is needed.
 */

struct softnet_data
{
        int throttle;
        int cng_level;
        int avg_blog;
        struct sk_buff_head input_pkt_queue;
        struct net_device *output_queue;
        struct sk_buff *completion_queue;
} __attribute__((__aligned__(SMP_CACHE_BYTES)));

I didn't understand why packets are placed so and why
locking isn't needed?

__________________________________________________
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Oct 15 2001 - 21:00:24 EST