@@ -51,8 +51,6 @@ let ovs_ofctl = "/usr/bin/ovs-ofctl"
5151
5252let ovs_appctl = " /usr/bin/ovs-appctl"
5353
54- let ovs_vlan_bug_workaround = " /usr/sbin/ovs-vlan-bug-workaround"
55-
5654let brctl = ref " /sbin/brctl"
5755
5856let modprobe = " /sbin/modprobe"
@@ -1352,44 +1350,6 @@ module Ovs = struct
13521350 )
13531351 with _ -> warn " Failed to set max-idle=%d on OVS" t
13541352
1355- let handle_vlan_bug_workaround override bridge =
1356- (* This is a list of drivers that do support VLAN tx or rx acceleration,
1357- but to which the VLAN bug workaround should not be applied. This could
1358- be because these are known-good drivers (that is, they do not have any
1359- of the bugs that the workaround avoids) or because the VLAN bug
1360- workaround will not work for them and may cause other problems.
1361-
1362- This is a very short list because few drivers have been tested. *)
1363- let no_vlan_workaround_drivers = [" bonding" ] in
1364- let phy_interfaces =
1365- try
1366- let interfaces = bridge_to_interfaces bridge in
1367- List. filter Sysfs. is_physical interfaces
1368- with _ -> []
1369- in
1370- List. iter
1371- (fun interface ->
1372- let do_workaround =
1373- match override with
1374- | Some value ->
1375- value
1376- | None -> (
1377- match Sysfs. get_driver_name interface with
1378- | None ->
1379- Sysfs. has_vlan_accel interface
1380- | Some driver ->
1381- if List. mem driver no_vlan_workaround_drivers then
1382- false
1383- else
1384- Sysfs. has_vlan_accel interface
1385- )
1386- in
1387- let setting = if do_workaround then " on" else " off" in
1388- try ignore (call_script ovs_vlan_bug_workaround [interface; setting])
1389- with _ -> ()
1390- )
1391- phy_interfaces
1392-
13931353 let get_vlans name =
13941354 try
13951355 let vlans_with_uuid =
@@ -1486,13 +1446,12 @@ module Ovs = struct
14861446 [" --" ; " --may-exist" ; " add-port" ; bridge; name] @ type_args
14871447
14881448 let create_bridge ?mac ?external_id ?disable_in_band ?igmp_snooping
1489- ~fail_mode vlan vlan_bug_workaround name =
1449+ ~fail_mode vlan name =
14901450 let vlan_arg =
14911451 match vlan with
14921452 | None ->
14931453 []
14941454 | Some (parent , tag ) ->
1495- handle_vlan_bug_workaround vlan_bug_workaround parent ;
14961455 [parent; string_of_int tag]
14971456 in
14981457 let mac_arg =
0 commit comments