Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tsbin/mlnx_bf_configure: Fix cases when "devlink eswitch set mode" … #65

Merged
merged 1 commit into from
Aug 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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