Hi Nicolas, David and all,

r...@d0:~# dladm set-linkprop -p maxbw=0 xvm4_2
dladm: warning: cannot persistently set link property 'maxbw': object not found

If xvm4_2 is a temporary VNIC created by Xen then it's expected. If you don't specify -t, dladm will assume you want to set that property persistently, and you cannot store persistent properties for non-persistent data-links.

Ah, that sounds very reasonable. Thank you for your explanation.

There was an effort to allow the maximum bandwidth to be configured from the Xen tools themselves [...] See http://arc.opensolaris.org/caselog/PSARC/2009/137.

I actually only need the temporary setting, but it's good ti know that the architecture for permanently setting the maxbw parameter has already been implemented.

I did get the expected behavior with a series of set-linkprop and reset-linkprop commands.

So obviously corner-cases exist when the maxbw property isn't applied strictly.

It would be interesting to know how you can get to that state. If you can reproduce this let us know.

I can. It looks like one set/reset cycle is needed before the maxbw property is enforced:


dom0 is snv_122

domUs are 5.10 Generic_141415-07

Etherstub:

dladm create-etherstub cli0
dladm set-linkprop -p mtu=1500 cli0

Interfaces defined for domUs (one of four interfaces each)

node0:

    <interface type='bridge'>
      <mac address='aa:bb:cc:dd:00:03'/>
      <source bridge='cli0'/>
      <script path='/usr/lib/xen/scripts/vif-vnic'/>
      <target dev='vif-1.2'/>
    </interface>

node1:

    <interface type='bridge'>
      <mac address='aa:bb:cc:dd:01:03'/>
      <source bridge='cli0'/>
      <script path='/usr/lib/xen/scripts/vif-vnic'/>
      <target dev='vif-1.2'/>
    </interface>

Dynamic interfaces created by xvm:

r...@d0:/rpool/xvm# dladm show-link | grep cli0
cli0        etherstub 1500  unknown  --
xvm5_2      vnic     1500   up       cli0
xvm6_2      vnic     1500   up       cli0

Simple network setup in domUs:

pub0-node0:/# ifconfig xnf2 plumb 192.168.55.1/24 up
pub0-node1:/# ifconfig xnf2 plumb 192.168.55.2/24 up

Test from node0:

pub0-node0:/# ping -sn 192.168.55.2 1500

-> working.

Now run on dom0:

r...@d0:/rpool/xvm# dladm set-linkprop -t -p maxbw=0 xvm5_2

-> ping still reports echo replies

r...@d0:/rpool/xvm# dladm reset-linkprop -t -p maxbw xvm5_2

-> ping still reports echo replies

r...@d0:/rpool/xvm# dladm set-linkprop -t -p maxbw=0 xvm5_2

-> ping STOPS reporting echo replies

Nils
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to