Re: [PATCH net-next v2 4/4] net: mvneta: Spread out the TX queues management on all CPUs

2015-12-05 Thread Marcin Wojtas
Hi Gregory, > @@ -1824,13 +1835,16 @@ error: > static int mvneta_tx(struct sk_buff *skb, struct net_device *dev) > { > struct mvneta_port *pp = netdev_priv(dev); > - u16 txq_id = skb_get_queue_mapping(skb); > + u16 txq_id = smp_processor_id() % txq_number; I think it may be

Re: [PATCH net-next v2 4/4] net: mvneta: Spread out the TX queues management on all CPUs

2015-12-05 Thread David Miller
From: Marcin Wojtas Date: Sat, 5 Dec 2015 20:14:31 +0100 > Hi Gregory, > >> @@ -1824,13 +1835,16 @@ error: >> static int mvneta_tx(struct sk_buff *skb, struct net_device *dev) >> { >> struct mvneta_port *pp = netdev_priv(dev); >> - u16 txq_id =

Re: [PATCH net-next v2 4/4] net: mvneta: Spread out the TX queues management on all CPUs

2015-12-04 Thread Arnd Bergmann
On Friday 04 December 2015 11:12:30 Eric Dumazet wrote: > On Fri, 2015-12-04 at 19:45 +0100, Gregory CLEMENT wrote: > > With this patch each CPU is associated with its own set of TX queues. In > > the same time the SKB received in mvneta_tx is bound to the queue > > associated to the CPU sending

[PATCH net-next v2 4/4] net: mvneta: Spread out the TX queues management on all CPUs

2015-12-04 Thread Gregory CLEMENT
With this patch each CPU is associated with its own set of TX queues. In the same time the SKB received in mvneta_tx is bound to the queue associated to the CPU sending the data. Thanks to this the next IRQ will be received on the same CPU allowing sending more data. It will also allow to have a

Re: [PATCH net-next v2 4/4] net: mvneta: Spread out the TX queues management on all CPUs

2015-12-04 Thread Eric Dumazet
On Fri, 2015-12-04 at 19:45 +0100, Gregory CLEMENT wrote: > With this patch each CPU is associated with its own set of TX queues. In > the same time the SKB received in mvneta_tx is bound to the queue > associated to the CPU sending the data. Thanks to this the next IRQ will > be received on the