From: Scott Feldman <scofeldm@cisco.com>
To: Chris Wright <chrisw@redhat.com>
Cc: <davem@davemloft.net>, <netdev@vger.kernel.org>, <arnd@arndb.de>
Subject: Re: [net-next-2.6 PATCH 1/2] Add ndo_set_vf_port_profile (was iovnl)
Date: Sat, 24 Apr 2010 07:37:57 -0700 [thread overview]
Message-ID: <C7F85055.2B535%scofeldm@cisco.com> (raw)
In-Reply-To: <20100424022242.GF3843@x200.localdomain>
On 4/23/10 7:22 PM, "Chris Wright" <chrisw@redhat.com> wrote:
>> I took some liberties and s/SR-IOV/IOV in the code comments around the
>> ndo_set_vf_* cmds as they can apply to both SR-IOV and non-SR-IOV adapters,
>> as long as there is a PF:VF parent:child relationship.
>
> For enic case, which do you expect to use for net_dev and VF index? Would
> this be VF + index== 0 (meaning the degenerate case you described last
> time where PF==VF)?
Yes, for this enic PF==VF, but that's a short term situation. It's a small
matter of programming (in firmware) to turn enic into the more general case.
But I want to focus on getting port-profile support in first, with the
current enic+firmware.
>> A port-profile is used to configure/enable the network port backing the VF,
>> not
>> to configure the host-facing side of the VF.
>
> How shall we do the lldpad case?
Same as before with iovnl. The sender of RTM_SETLINK msg (say libvirt)
needs to send with mcast group RTMGRP_LINK and listener (say lldpad) needs
to listen on that mcast group. This way, both kernel and user-space get the
msg.
>> + if (tb[IFLA_VF_PORT_PROFILE]) {
>> + struct ifla_vf_port_profile *ivp;
>> + ivp = nla_data(tb[IFLA_VF_PORT_PROFILE]);
>> + err = -EOPNOTSUPP;
>> + if (ops->ndo_set_vf_port_profile)
>> + ivp->port_profile[sizeof(ivp->port_profile)-1] = 0;
>> + ivp->host_uuid[sizeof(ivp->host_uuid)-1] = 0;
>> + ivp->client_uuid[sizeof(ivp->client_uuid)-1] = 0;
>> + ivp->client_name[sizeof(ivp->client_name)-1] = 0;
>
> Seems a little unusual to modify the buffer, add a kernel internal structure
> that can be passed to ndo callback (where buffer lens can be knonw)?
Ok, let me see what can be done here.
-scott
next prev parent reply other threads:[~2010-04-24 14:38 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-24 0:35 [net-next-2.6 PATCH 1/2] Add ndo_set_vf_port_profile (was iovnl) Scott Feldman
2010-04-24 0:35 ` [net-next-2.6 PATCH 2/2] add enic ndo_vf_set_port_profile op support for dynamic vnics Scott Feldman
2010-04-24 2:21 ` Chris Wright
2010-04-24 14:30 ` Scott Feldman
2010-04-24 2:22 ` [net-next-2.6 PATCH 1/2] Add ndo_set_vf_port_profile (was iovnl) Chris Wright
2010-04-24 14:37 ` Scott Feldman [this message]
2010-04-24 7:19 ` [net-next-2.6 PATCH 1/2] Add ndo_set_vf_port_profile David Miller
2010-04-26 19:27 ` Scott Feldman
2010-04-26 19:57 ` Scott Feldman
2010-04-26 20:25 ` David Miller
2010-04-26 22:38 ` Rose, Gregory V
2010-04-26 23:21 ` Scott Feldman
2010-04-27 0:03 ` Scott Feldman
2010-04-27 0:15 ` Chris Wright
2010-04-27 12:35 ` Arnd Bergmann
2010-04-27 17:33 ` Anirban Chakraborty
2010-04-27 19:38 ` Arnd Bergmann
2010-04-27 20:57 ` Scott Feldman
2010-04-26 20:24 ` David Miller
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=C7F85055.2B535%scofeldm@cisco.com \
--to=scofeldm@cisco.com \
--cc=arnd@arndb.de \
--cc=chrisw@redhat.com \
--cc=davem@davemloft.net \
--cc=netdev@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;
as well as URLs for NNTP newsgroup(s).