Skip to content

Commit

Permalink
tsbin/mlnx_bf_configure: Fix cases when "devlink eswitch set mode" re…
Browse files Browse the repository at this point in the history
…turns BUSY

Signed-off-by: Mikhael Goikhman <[email protected]>
  • Loading branch information
migonv committed Aug 13, 2023
1 parent 8c1d3a0 commit 08d6014
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 08d6014

Please sign in to comment.