netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next V1 0/3] Add max rate TXQ attribute
@ 2015-03-12  8:53 Or Gerlitz
  2015-03-12  8:53 ` [PATCH net-next V1 1/3] net: Add max rate tx queue attribute Or Gerlitz
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Or Gerlitz @ 2015-03-12  8:53 UTC (permalink / raw)
  To: David S. Miller, John Fastabend
  Cc: netdev, Amir Vadai, Ido Shamay, Matan Barak, Or Gerlitz

Add the ability to set a max-rate limitation for TX queues.
The attribute name is maxrate and the units are Mbs, to make
it similar to the existing max-rate limitation knobs (ETS and 
SRIOV ndo calls).

changes from V0:
  - addressed feedback from Sergei (thanks).

John, you suggested to add another way (e.g through netlink) to 
program the TXQ maxrate limit, I am OK to add that after we bake 
it a little further (see my response on V0). I would suggest to make 
progress on the current series which includes the basic ndo, TXQ sysfs 
entry & driver implementation, and add more injection points on top 
of it, once accepted, makes sense?

Or.


John Fastabend (1):
  net: Add max rate tx queue attribute

Or Gerlitz (2):
  net/mlx4_core: Add basic support for QP max-rate limiting
  net/mlx4_en: Add tx queue maxrate support

 drivers/net/ethernet/mellanox/mlx4/en_netdev.c     |   29 ++++++++
 drivers/net/ethernet/mellanox/mlx4/fw.c            |   33 +++++++++-
 drivers/net/ethernet/mellanox/mlx4/fw.h            |    1 +
 drivers/net/ethernet/mellanox/mlx4/main.c          |    2 +
 drivers/net/ethernet/mellanox/mlx4/qp.c            |    5 ++
 .../net/ethernet/mellanox/mlx4/resource_tracker.c  |    6 ++-
 include/linux/mlx4/device.h                        |   17 +++++
 include/linux/mlx4/qp.h                            |   14 +++-
 include/linux/netdevice.h                          |    9 +++
 net/core/net-sysfs.c                               |   70 ++++++++++++++++----
 10 files changed, 168 insertions(+), 18 deletions(-)

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-03-16 21:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-12  8:53 [PATCH net-next V1 0/3] Add max rate TXQ attribute Or Gerlitz
2015-03-12  8:53 ` [PATCH net-next V1 1/3] net: Add max rate tx queue attribute Or Gerlitz
2015-03-15  5:07   ` David Miller
2015-03-15  7:41     ` Or Gerlitz
2015-03-16 20:01       ` Florian Fainelli
2015-03-16 21:37         ` Tom Herbert
2015-03-12  8:53 ` [PATCH net-next V1 2/3] net/mlx4_core: Add basic support for QP max-rate limiting Or Gerlitz
2015-03-12  8:53 ` [PATCH net-next V1 3/3] net/mlx4_en: Add tx queue maxrate support Or Gerlitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).