From: Alex Williamson <alex.williamson@redhat.com>
To: Andre Richter <andre.o.richter@gmail.com>
Cc: linux-pci@vger.kernel.org
Subject: Re: override B:D:F assignments for SRIOV VFs
Date: Wed, 02 Oct 2013 13:25:05 -0600 [thread overview]
Message-ID: <1380741905.2673.3.camel@ul30vt.home> (raw)
In-Reply-To: <CAKqeN2-uu9sV5g7LpTn-E8osOf1L3mi97FnA1Oi6YJAs8POBCw@mail.gmail.com>
On Wed, 2013-10-02 at 21:10 +0200, Andre Richter wrote:
> Hello all,
>
> i have an SRIOV capable device which has its PF behind 01:00.0.
> After enabling SRIOV, the VFs show up as 01:08.0, 01:08.1 and so on.
>
> Due to several stupid reasons, I'd like to do a quick and dirty hack
> that makes my VFs show up as 01:00.1, 01:00.2 and so on.
>
> I'd be so happy for any hints where to start with this.
>
> What I found already is virtfn_devfn() in iov.c, where the devfns for
> the VFs are computed, but changing it here doesn't work. I guess this
> has to be done way before?
> However, I wonder where the rule for computing the devfn comes from?
Can't be done, the VF address is determined by the stride and offset in
the SR-IOV capability on the PF which are read-only per the SR-IOV spec.
The kernel doesn't get to decide where they appear. Thanks,
Alex
prev parent reply other threads:[~2013-10-02 19:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-02 19:10 override B:D:F assignments for SRIOV VFs Andre Richter
2013-10-02 19:25 ` Alex Williamson [this message]
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=1380741905.2673.3.camel@ul30vt.home \
--to=alex.williamson@redhat.com \
--cc=andre.o.richter@gmail.com \
--cc=linux-pci@vger.kernel.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