Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SR-IOV devices get moved (renamed) upon their creation. This causes the `set-rps-mask.sh` to fail since the queue's path has changed. We should add additional udev rule to act upon the move of a physical device and set the rps mask correctly. The `set-rps-mask.sh` script has modified to act upon those two different scenarios: 1. when queues are being added. 2. when net device is moved. In addition we fail silently (return 0) when queues are failed to get updated due to the mentioned above. The queues that were failed to get updated, are expected to be updated by the instance that get trrigered after the device move (renaming). Signed-off-by: Talor Itzhak <titzhak@redhat.com>
- Loading branch information
Showing
3 changed files
with
11 additions
and
14 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
assets/performanceprofile/configs/99-netdev-physical-rps.rules
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 +1,4 @@ | ||
SUBSYSTEM=="queues", ACTION=="add", ENV{DEVPATH}=="/devices/pci*/queues/rx*", TAG+="systemd", PROGRAM="/bin/systemd-escape --path --template=update-rps@.service $env{DEVPATH}", ENV{SYSTEMD_WANTS}="%c" | ||
|
||
# SR-IOV devices are moved (renamed), hence we want to catch this event as well | ||
SUBSYSTEM=="net", ACTION=="move", ENV{DEVPATH}!="/devices/virtual/net/*", TAG+="systemd", PROGRAM="/bin/systemd-escape --path --template=update-rps@.service $env{DEVPATH}", ENV{SYSTEMD_WANTS}="%c" |
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
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