forked from Mellanox/mlnx-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adapt link name script for reuse native NIC port
Uplink rep NIC port won't be re-created when goes to switchdev mode, rename native NIC port when driver loads. Signed-off-by: Bodong Wang <[email protected]> Signed-off-by: Vladimir Sokolovsky <[email protected]>
- Loading branch information
1 parent
caf305e
commit 161c13c
Showing
2 changed files
with
20 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
SUBSYSTEM=="net", ACTION=="add", ATTR{phys_switch_id}!="", ATTR{phys_port_name}!="", \ | ||
IMPORT{program}="/lib/udev/vf-net-link-name.sh $attr{phys_switch_id} $attr{phys_port_name}" \ | ||
NAME="$env{NAME}", RUN+="/sbin/ethtool -L $env{NAME} combined 4" | ||
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" | ||
|
||
SUBSYSTEM=="net", ACTION=="add", ATTR{phys_port_name}!="", \ | ||
IMPORT{program}="/lib/udev/vf-net-link-name.sh $attr{phys_port_name}" \ | ||
NAME="$env{NAME}" | ||
|
||
LABEL="net_setup_skip_link_name" | ||
RUN+="/sbin/ethtool -L $env{NAME} combined 4" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters