Skip to content

Commit

Permalink
Merge pull request #65 from migonv/master
Browse files Browse the repository at this point in the history
tsbin/mlnx_bf_configure: Fix cases when "devlink eswitch set mode" …
  • Loading branch information
vladsokolovsky authored Aug 14, 2023
2 parents 8c1d3a0 + 08d6014 commit cf38f65
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tsbin/mlnx_bf_configure
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,11 @@ IPSEC_FULL_OFFLOAD=${IPSEC_FULL_OFFLOAD:-"no"}
LAG_HASH_MODE=${LAG_HASH_MODE:-"yes"}
ENABLE_ESWITCH_MULTIPORT=${ENABLE_ESWITCH_MULTIPORT:-"no"}

# Delete ovs bridges and tc ingress rules if any,
# otherwise "devlink dev eswitch set .. mode" may return BUSY forever
ovs-vsctl list-br 2>/dev/null | xargs -r -L 1 ovs-vsctl del-br
for i in `ls -1 /sys/class/net/`; do tc filter del dev $i ingress &>/dev/null; done

num_of_devs=0
for dev in `lspci -nD -d 15b3: | grep 'a2d[26c]' | cut -d ' ' -f 1`
do
Expand Down

0 comments on commit cf38f65

Please sign in to comment.