Skip to content

Commit bb99261

Browse files
committed
Add mtu to VIF frontend xs tree
Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
1 parent 209a0ed commit bb99261

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
@@ -872,6 +872,13 @@ module Vif = struct
872872
else
873873
[]
874874
in
875+
let front_mtu =
876+
match mtu with
877+
| Some mtu when mtu > 0 ->
878+
[("mtu", string_of_int mtu)]
879+
| _ ->
880+
[]
881+
in
875882
let front =
876883
[
877884
("backend-id", string_of_int backend_domid)
@@ -881,6 +888,7 @@ module Vif = struct
881888
; ("disconnect", if carrier then "0" else "1")
882889
]
883890
@ front_options
891+
@ front_mtu
884892
in
885893
let extra_private_keys =
886894
List.map (fun (k, v) -> ("other-config/" ^ k, v)) other_config

0 commit comments

Comments
 (0)