public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
From: Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Devesh Sharma
	<devesh.sharma-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>,
	jgg-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Selvin Xavier
	<selvin.xavier-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
Subject: Re: [for-next 1/5] RDMA/bnxt_re: Enable RoCE on virtual functions
Date: Mon, 08 Jan 2018 17:12:29 -0500	[thread overview]
Message-ID: <1515449549.3403.112.camel@redhat.com> (raw)
In-Reply-To: <1515152434-13105-2-git-send-email-devesh.sharma-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 1673 bytes --]

On Fri, 2018-01-05 at 06:40 -0500, Devesh Sharma wrote:
> From: Selvin Xavier <selvin.xavier-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
> 
> Currently, fifty percent of the total available resources
> are reserved for PF and remaining are equally divided among
> active VFs.
> 
> +/*
> + * Percentage of resources of each type reserved for PF.
> + * Remaining resources are divided equally among VFs.
> + * [0, 100]
> + */
> +#define BNXT_RE_PCT_RSVD_FOR_PF         50

This is a separate comment from the patch review itself.  But, are you
sure this is a good idea?  And especially are you sure that it should be
a compile time constant and not a runtime parameter?

I ask because it seems to me that usage of this stuff falls into one of
two categories:

1) All bare metal usage
2) SRIOV usage (in which case the bare metal OS does relatively little,
the SRIOV using clients do most of the work)

I guess I'm finding it hard to imagine a scenario where, when you do
have SRIOV VFs, that you don't want the majority of all resources being
used there.

I might suggest that you simply don't split resources at all.  Maybe do
something like filesystems do.  Let anyone at all take a resource until
you hit 95% utilization then only root can write to the filesystem.  In
this case it would be let both PFs and VFs use resources at will up
until you hit the 95% utilization threshold and then restrict resource
use to the PF.  That would make much more sense to me.

-- 
Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
    GPG KeyID: B826A3330E572FDD
    Key fingerprint = AE6B 1BDA 122B 23B4 265B  1274 B826 A333 0E57 2FDD

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  parent reply	other threads:[~2018-01-08 22:12 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-05 11:40 [for-next 0/5] Enable features in Broadcom's RoCE driver Devesh Sharma
     [not found] ` <1515152434-13105-1-git-send-email-devesh.sharma-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
2018-01-05 11:40   ` [for-next 1/5] RDMA/bnxt_re: Enable RoCE on virtual functions Devesh Sharma
     [not found]     ` <1515152434-13105-2-git-send-email-devesh.sharma-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
2018-01-08 22:12       ` Doug Ledford [this message]
     [not found]         ` <1515449549.3403.112.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2018-01-09 14:07           ` Devesh Sharma
     [not found]             ` <CANjDDBgG0zHqBRky=UzekBnNKrJyjgc06m4UivRTn5xu1gqE0w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-01-09 15:06               ` Doug Ledford
     [not found]                 ` <1515510400.3403.138.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2018-01-09 16:48                   ` Devesh Sharma
2018-01-05 11:40   ` [for-next 2/5] RDMA/bnxt_re: Add support for query firmware version Devesh Sharma
     [not found]     ` <1515152434-13105-3-git-send-email-devesh.sharma-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
2018-01-09 14:18       ` Leon Romanovsky
     [not found]         ` <20180109141853.GG6823-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2018-01-09 18:08           ` Devesh Sharma
     [not found]             ` <CANjDDBgWZ9Uq5LkL0t06uL=byu_B6_MzbBWAW2YAMP7FwDEbyA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-01-10  6:38               ` Leon Romanovsky
     [not found]                 ` <20180110063803.GD7368-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2018-01-10 10:02                   ` Devesh Sharma
2018-01-05 11:40   ` [for-next 3/5] RDMA/bnxt_re: Add support for MRs with Huge pages Devesh Sharma
2018-01-05 11:40   ` [for-next 4/5] RDMA/bnxt_re: expose detailed stats retrieved from HW Devesh Sharma
2018-01-05 11:40   ` [for-next 5/5] RDMA/bnxt_re: Add SRQ support for Broadcom adapters Devesh Sharma

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1515449549.3403.112.camel@redhat.com \
    --to=dledford-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=devesh.sharma-dY08KVG/lbpWk0Htik3J/w@public.gmane.org \
    --cc=jgg-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=selvin.xavier-dY08KVG/lbpWk0Htik3J/w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox