netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] net: Add support to configure SR-IOV VF queues.
@ 2018-05-29  8:18 Michael Chan
  2018-05-29  8:18 ` [PATCH net-next 1/3] net: Add support to configure SR-IOV VF minimum and maximum queues Michael Chan
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Michael Chan @ 2018-05-29  8:18 UTC (permalink / raw)
  To: davem; +Cc: netdev

VF Queue resources are always limited and there is currently no
infrastructure to allow the admin. on the host to add or reduce queue
resources for any particular VF.  This series adds the infrastructure
to do that and adds the functionality to the bnxt_en driver.

The "ip link set" command will subsequently be patched to support the new
operation.

v1:
- Changed the meaning of the min parameters to be strictly the minimum
guaranteed value, suggested by Jakub Kicinsky.
- More complete implementation in the bnxt_en driver.

Michael Chan (3):
  net: Add support to configure SR-IOV VF minimum and maximum queues.
  bnxt_en: Store min/max tx/rx rings for individual VFs.
  bnxt_en: Implement .ndo_set_vf_queues().

 drivers/net/ethernet/broadcom/bnxt/bnxt.c       |   1 +
 drivers/net/ethernet/broadcom/bnxt/bnxt.h       |   9 ++
 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c | 157 +++++++++++++++++++++++-
 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.h |   2 +
 include/linux/if_link.h                         |   4 +
 include/linux/netdevice.h                       |   6 +
 include/uapi/linux/if_link.h                    |   9 ++
 net/core/rtnetlink.c                            |  32 ++++-
 8 files changed, 213 insertions(+), 7 deletions(-)

-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: [PATCH net-next 1/3] net: Add support to configure SR-IOV VF minimum and maximum queues.
@ 2018-05-30  5:56 Jakub Kicinski
  2018-05-30  6:08 ` Michael Chan
  0 siblings, 1 reply; 14+ messages in thread
From: Jakub Kicinski @ 2018-05-30  5:56 UTC (permalink / raw)
  To: Michael Chan, Samudrala, Sridhar; +Cc: David Miller, Netdev, Or Gerlitz

On Tue, 29 May 2018 20:19:54 -0700, Michael Chan wrote:
> On Tue, May 29, 2018 at 1:46 PM, Samudrala, Sridhar wrote:
> > Isn't ndo_set_vf_xxx() considered a legacy interface and not planned to be
> > extended?

+1 it's painful to see this feature being added to the legacy
API :(  Another duplicated configuration knob.

> I didn't know about that.
>
> > Shouldn't we enable this via ethtool on the port representor netdev?
>
> We discussed about this.  ethtool on the VF representor will only work
> in switchdev mode and also will not support min/max values.

Ethtool channel API may be overdue a rewrite in devlink anyway, but I
feel like implementing switchdev mode and rewriting features in devlink
may be too much to ask.

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

end of thread, other threads:[~2018-05-31  3:35 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-29  8:18 [PATCH net-next 0/3] net: Add support to configure SR-IOV VF queues Michael Chan
2018-05-29  8:18 ` [PATCH net-next 1/3] net: Add support to configure SR-IOV VF minimum and maximum queues Michael Chan
2018-05-29 20:46   ` Samudrala, Sridhar
2018-05-30  3:19     ` Michael Chan
2018-05-30 22:36       ` Jakub Kicinski
2018-05-29  8:18 ` [PATCH net-next 2/3] bnxt_en: Store min/max tx/rx rings for individual VFs Michael Chan
2018-05-29  8:18 ` [PATCH net-next 3/3] bnxt_en: Implement .ndo_set_vf_queues() Michael Chan
  -- strict thread matches above, loose matches on Subject: below --
2018-05-30  5:56 [PATCH net-next 1/3] net: Add support to configure SR-IOV VF minimum and maximum queues Jakub Kicinski
2018-05-30  6:08 ` Michael Chan
2018-05-30  6:33   ` Jakub Kicinski
2018-05-30  7:18     ` Michael Chan
2018-05-30 21:23     ` Samudrala, Sridhar
2018-05-30 22:53       ` Jakub Kicinski
2018-05-31  3:35         ` Samudrala, Sridhar

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).