OSDN Git Service

ibmveth: Implement multi queue on xmit
authorNick Child <nnac123@linux.ibm.com>
Wed, 28 Sep 2022 21:43:49 +0000 (16:43 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Sep 2022 11:40:22 +0000 (12:40 +0100)
commitd926793c1de96e4e519b5489fe5be95a470c175f
treebec23212ca43a28d39cb1d60de5ea4bd0b3537e4
parentd6832ca48d8af0ec3d02d93c17027304c429c087
ibmveth: Implement multi queue on xmit

The `ndo_start_xmit` function is protected by a spinlock on the tx queue
being used to transmit the skb. Allow concurrent calls to
`ndo_start_xmit` by using more than one tx queue. This allows for
greater throughput when several jobs are trying to transmit data.

Introduce 16 tx queues (leave single rx queue as is) which each
correspond to one DMA mapped long term buffer.

Signed-off-by: Nick Child <nnac123@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmveth.c
drivers/net/ethernet/ibm/ibmveth.h