-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support Switchdev for kernel 5.8 and above
Till kernel 5.7 VF representors are exposed as virtual devices, they are not linked to a PCI address. Starting from kernel 5.8 the VF representors are linked to their PF PCI address, so /sys/bus/pci/devices/<pf-pci-address>/net contains the PF net device and it VF representors net devices. The new kernel behaviour affects 'tryGetInterfaceName' if PF in switchdev and configure-switchdev script This commit brings needed changes to cope with new kernel behviour. Signed-off-by: Mamduh Alassi <mamduhala@nvidia.com>
- Loading branch information
Showing
2 changed files
with
57 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
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