[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <loom.20100510T172617-53@post.gmane.org>
Date: Mon, 10 May 2010 15:37:00 +0000 (UTC)
From: Stefan Berger <stefanb@...ibm.com>
To: netdev@...r.kernel.org
Subject: Re: [PATCH] virtif: initial interface extensions
Arnd Bergmann <arnd <at> arndb.de> writes:
[...]
> + if (tb[IFLA_VIRTIF]) {
> + struct ifla_virtif_port_profile *ivp;
> + struct nlattr *virtif[IFLA_VIRTIF_MAX+1];
> + u32 vf;
> +
> + err = nla_parse_nested(virtif, IFLA_VIRTIF_MAX,
> + tb[IFLA_VIRTIF], ifla_virtif_policy);
> + if (err < 0)
> + return err;
> +
> + if (!virtif[IFLA_VIRTIF_VF] || !virtif[IFLA_VIRTIF_PORT_PROFILE])
> + goto novirtif; /* IFLA_VIRTIF may be directed at user space */
In what case would the IFLA_VIRTIF_PORT_PROFILE be provided? Would libvirt for
example need to be aware of whether the Ethernet device can handle the setup
protocol via its firmware and in this case provide the port profile parameter
and in other cases provide other parameters? Certainly the user or upper layer
management software would have to know it when creating the domain XML and in
fact different types of parameters were needed. Obviously we should have one
common set of (XML) parameters that go into the netlink message and that can be
handled by the kernel driver if the firmware knows how to handle it or by
LLDPAD. Libvirt would send the parameters via netlink message to trigger the
setup protocol and the message may be received by kernel and LLDPAD. From what I
can see LLDPAD also may need a way to probe the kernel driver whether it handled
the setup protocol via firmware on a given interface, which may or may not be
true for all interfaces, but may be necessary to avoid triggering the setup
protocol twice.
Stefan
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists