]> xenbits.xensource.com Git - pvdrivers/win/xenvif.git/commit
Add a xenstore watch for the "speed" key...
authorPaul Durrant <paul.durrant@citrix.com>
Fri, 2 Nov 2018 15:51:31 +0000 (15:51 +0000)
committerPaul Durrant <paul.durrant@citrix.com>
Tue, 6 Nov 2018 09:40:35 +0000 (09:40 +0000)
commit2f869ea4cb44571708ea34d895739974ae6e4a0c
tree003010d11e7c06ce78650550a09e1b27a631dc8b
parent3e9d6d8744da75a77d85ca3b60755134199e82f1
Add a xenstore watch for the "speed" key...

...and allow the value to specify units.

The 'wire' speed advertised by XENNET to the Windows network stack can be
controlled by the value of a "speed" key in the xenstore frontend area.
Values of this key are currently interpreted as decimal gigabits-per-second.

This patch sets a watch on the key (meaning changes to it now take
immediate effect) and allows units to be specified: 'G/g' for gigabits-per-
second, 'M/m' for megabits-per-second, and 'K/k' for kilobit-per-second.
Thus, for example, '100M' means 100 megabits-per-second. If no unit is
specified then the value is assumed to be in gigabits-per-second, as before.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
src/xenvif/mac.c