From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Chan Subject: [PATCH net-next 0/3] net: Add support to configure SR-IOV VF queues. Date: Tue, 29 May 2018 04:18:37 -0400 Message-ID: <1527581920-3778-1-git-send-email-michael.chan@broadcom.com> Cc: netdev@vger.kernel.org To: davem@davemloft.net Return-path: Received: from mail-pf0-f195.google.com ([209.85.192.195]:39184 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932072AbeE2IS5 (ORCPT ); Tue, 29 May 2018 04:18:57 -0400 Received: by mail-pf0-f195.google.com with SMTP id a22-v6so6914356pfn.6 for ; Tue, 29 May 2018 01:18:57 -0700 (PDT) Sender: netdev-owner@vger.kernel.org List-ID: 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