Skip to content

Commit 8839b65

Browse files
authored
Merge pull request #771 from lindig/0.150-lcm
Add mtu to VIF frontend xs tree (CA-359472)
2 parents 9abbab5 + 056cd3e commit 8839b65

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

xc/device.ml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -860,6 +860,13 @@ module Vif = struct
860860
else
861861
[]
862862
in
863+
let front_mtu =
864+
match mtu with
865+
| Some mtu when mtu > 0 ->
866+
[("mtu", string_of_int mtu)]
867+
| _ ->
868+
[]
869+
in
863870
let front =
864871
[
865872
("backend-id", string_of_int backend_domid)
@@ -869,6 +876,7 @@ module Vif = struct
869876
; ("disconnect", if carrier then "0" else "1")
870877
]
871878
@ front_options
879+
@ front_mtu
872880
in
873881
let extra_private_keys =
874882
List.map (fun (k, v) -> ("other-config/" ^ k, v)) other_config

0 commit comments

Comments
 (0)