Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1264212

[RFC PATCH 0/2] net: mvneta: Introduce RSS support

From Gregory CLEMENT <gregory.clement@free-electrons.com>
Newsgroups linux.kernel
Subject [RFC PATCH 0/2] net: mvneta: Introduce RSS support
Date 2015-11-06 19:40 +0100
Message-ID <qrU5z-875-9@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Hi,

this series is a first attempt to add RSS support on mvneta.

this series will allow associating an ethernet interface to a given
CPU through RSS by using "ethtool -X ethX weight". Indeed, currently I
only enable one entry in the RSS lookup table. Even if it is not
really RSS, it allows to get back the irq affinity feature we lost by
using the percpu interrupt.

The first patch really associates the RX queues with the CPUs instead
of masking the percpu interrupts for doing it. All the RX queues are
enabled and are statically associated with the CPUs by using a modulo
of the number of present CPUs. But at this stage only one RX queue
will receive the stream.

I also choose to associate all the TX queues on the same CPU that the
one associated to the RX queue. It allows to contain all the
interrupts on the same CPU. I think that an improvement on this side
would be the support of the XPS.

The second patch introduces a first level of RSS support through the
ethtool functions. As explained in the introduction there is only one
entry in the RSS lookup table which permits at the end to associate an
mvneta port to a CPU through the RX queues because the mapping is
static.

I really would like to have some feedback before going further and
then going in the wring direction.

Thanks,


Gregory CLEMENT (2):
  net: mvneta: Associate RX queues with each CPU
  net: mvneta: Add naive RSS support

 drivers/net/ethernet/marvell/mvneta.c | 264 +++++++++++++++++++++++++++++-----
 1 file changed, 229 insertions(+), 35 deletions(-)

-- 
2.5.0

--
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/

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[RFC PATCH 0/2] net: mvneta: Introduce RSS support Gregory CLEMENT <gregory.clement@free-electrons.com> - 2015-11-06 19:40 +0100
  [RFC PATCH 2/2] net: mvneta: Add naive RSS support Gregory CLEMENT <gregory.clement@free-electrons.com> - 2015-11-06 19:40 +0100
    Re: [RFC PATCH 2/2] net: mvneta: Add naive RSS support Marcin Wojtas <mw@semihalf.com> - 2015-11-06 20:20 +0100
      Re: [RFC PATCH 2/2] net: mvneta: Add naive RSS support Gregory CLEMENT <gregory.clement@free-electrons.com> - 2015-11-06 22:00 +0100
  [RFC PATCH 1/2] net: mvneta: Associate RX queues with each CPU Gregory CLEMENT <gregory.clement@free-electrons.com> - 2015-11-06 19:40 +0100
  Re: [RFC PATCH 0/2] net: mvneta: Introduce RSS support Marcin Wojtas <mw@semihalf.com> - 2015-11-06 20:40 +0100
    Re: [RFC PATCH 0/2] net: mvneta: Introduce RSS support Gregory CLEMENT <gregory.clement@free-electrons.com> - 2015-11-09 19:20 +0100

csiph-web