<br><tt><font size=2>Scott Feldman <scofeldm@cisco.com> wrote on
05/10/2010 03:53:45 PM:<br>
<br>
</font></tt>
<br><tt><font size=2>> <br>
> Stefan Berger, Gerhard Stenzel, libvir-list, libvir-list-bounces</font></tt>
<br><tt><font size=2>> <br>
> On 5/10/10 12:14 PM, "Chris Wright" <chrisw@redhat.com>
wrote:<br>
> <br>
> > * Scott Feldman (scofeldm@cisco.com) wrote:<br>
> >>> Now the slight differences in technology<br>
> >>> that we seem to try to support here are reflected in
the parameters that<br>
> >>> go into the XML and end up in the netlink messages. Any
way to<br>
> >>> consolidate that?<br>
> >> <br>
> >> I doesn't appear we'll be able to consolidate the parameters
<br>
> between the two<br>
> >> technologies based on what I've seen from Arnd's latest patch
on the kernel<br>
> >> mailing list.  The latest proposal is to define a single
netlink msg that<br>
> >> can handle two disjoint sets of parameters.  If there
is no way for further<br>
> >> consolidation, it probably makes more senses to have two
different netlink<br>
> >> msgs, one for each parameter set.<br>
> > <br>
> > Right, and would point to a flag to differentiate the two in
xml too.<br>
> <br>
> Here's a proposal to consolidate both technologies:<br>
> <br>
> 1) Use the IFLA_VF_PORT_PROFILE netlink msg I defined which has three
basic<br>
> sets of information:<br>
> <br>
>     a) port-profile name<br>
>     b) mac addr of guest interface<br>
>     c) auxiliary info such as host UUID, client UUID, etc.<br>
> <br>
> 2) Define the XML to pass the above using mcast netlink msg.<br>
> <br>
> 3) Create a port-profile manager for LLDPAD to map port-profile to
internal<br>
> protocol settings.  The mapping would resolve VDP parameters,
for example,<br>
> given a port-profile.  Like:<br>
> <br>
>     port-profile: "joes-garage"   --->
 VSI Manager ID: 15<br>
>                    
                    VSI
Type ID: 12345<br>
>                    
                    VSI
Type ID Ver: 1</font></tt>
<br>
<br><tt><font size=2>Sounds like this would require a whole new management
API to get this mapping onto the</font></tt>
<br><tt><font size=2>machine and that probably isn't anywhere in place
today...</font></tt>
<br><tt><font size=2><br>
> <br>
> VSI Instance ID would come from client UUID (or is it host UUID?).</font></tt>
<br>
<br><tt><font size=2>Previously sounded to me like this would be a per
interface UUID.</font></tt>
<br><tt><font size=2><br>
> <br>
> This proposal has these good qualities:<br>
> <br>
>     1) single netlink msg for kernel and user-space<br>
>     2) single parameter set for sender's perspective (libvirt)<br>
>     3) single XML spec<br>
>     4) single code path in libvirt<br>
>     5) (potential) cross-vendor-switch VM migration<br>
>     6) user-friendly port-profile names<br>
>     7) works for the following use-cases:<br>
> <br>
>         a) firmware adapter that talks to external
switch directly<br>
>         b) software switch that talks to external
switch directly<br>
>         c) host daemon agent that talks to external
switch indirectly<br>
> <br>
> The details of the port-profile mgr would need to be worked out.  Is
there<br>
> local mapping per host or across hosts?<br>
> <br>
> Comments?</font></tt>
<br>
<br><tt><font size=2>802.1Qbg + 802.1Qbh => 802.1Qbi  :-)</font></tt>
<br>
<br><tt><font size=2>Stefan</font></tt>
<br><tt><font size=2><br>
> <br>
> -scott<br>
> <br>
</font></tt>