Skip to content

Commit

Permalink
Remove rollback from prepare.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
PlagueCZ committed Aug 26, 2024
1 parent 7ce61c0 commit be00ce7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions hack/prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,7 @@ process_switchdev_mode() {

log "enabling switchdev for $pf"
if ! devlink dev eswitch set pci/$pf mode switchdev; then
log "can't set eswitch mode, setting VFs to 0"
echo 0 > /sys/bus/pci/devices/$pf/sriov_numvfs
err "can't set eswitch mode"
fi
log "now waiting for everything to settle"
udevadm settle
Expand All @@ -133,8 +132,7 @@ process_multiport_eswitch_mode() {

log "enabling multiport eswitch mode for $pf"
if ! devlink dev param set pci/$pf name esw_multiport value true cmode runtime; then
log "can't enable multiport eswitch mode, setting VFs to 0"
echo 0 > /sys/bus/pci/devices/$pf/sriov_numvfs
err "can't enable multiport eswitch mode"
fi
log "now waiting for everything to settle"
udevadm settle
Expand Down

0 comments on commit be00ce7

Please sign in to comment.