On Wed, 2008-07-23 at 08:54 +0000, Jarek Poplawski wrote:
There isn't.
Is there a static data structure that the driver needs to instantiate to
'create' a queue? Something like:
/* this imaginary e1000 hardware has 16 hardware queues */
static struct net_tx_queue e1000e_tx_queues[16];
In that case you can stick the key in there and do:
int e1000e_init_tx_queue(struct net_tx_queue *txq)
{
...
spin_lock_init(&txq->tx_lock);
lockdep_set_class(&txq->tx_lock, &txq->tx_lock_key);
...
}
( This is what the scheduler runqueues also do )
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html