Skip to content

Commit

Permalink
82-net-setup-link.rules: Don't update ethtool interface for every int…
Browse files Browse the repository at this point in the history
…erface

Signed-off-by: Bodong Wang <bodong@mellanox.com>
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
  • Loading branch information
vladsokolovsky committed Jul 2, 2020
1 parent c8fcecb commit 6da98e5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions kernel-boot/82-net-setup-link.rules
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
SUBSYSTEM=="net", ACTION=="add", ATTR{phys_switch_id}!="", ATTR{phys_port_name}!="", \
IMPORT{program}="/lib/udev/vf-net-link-name.sh $attr{phys_port_name} $attr{phys_switch_id}" \
NAME="$env{NAME}", GOTO="net_setup_skip_link_name"
NAME="$env{NAME}", RUN+="/sbin/ethtool -L $env{NAME} combined 4", GOTO="net_setup_skip_link_name"

SUBSYSTEM=="net", ACTION=="add", ATTR{phys_port_name}!="", \
IMPORT{program}="/lib/udev/vf-net-link-name.sh $attr{phys_port_name}" \
NAME="$env{NAME}"
NAME="$env{NAME}", RUN+="/sbin/ethtool -L $env{NAME} combined 4"

LABEL="net_setup_skip_link_name"
RUN+="/sbin/ethtool -L $env{NAME} combined 4"

0 comments on commit 6da98e5

Please sign in to comment.