RE: [PATCH 4/8] net/mlx5: add sysfs check for Multiport E-Switch

2023-10-31 Thread Dariusz Sosnowski
ubject: Re: [PATCH 4/8] net/mlx5: add sysfs check for Multiport E-Switch > > External email: Use caution opening links or attachments > > > On Tue, 31 Oct 2023 16:27:29 +0200 > Dariusz Sosnowski wrote: > > > + MKSTR(sysfs_if_path, "/sys/class/net/%s"

Re: [PATCH 4/8] net/mlx5: add sysfs check for Multiport E-Switch

2023-10-31 Thread Stephen Hemminger
On Tue, 31 Oct 2023 16:27:29 +0200 Dariusz Sosnowski wrote: > + MKSTR(sysfs_if_path, "/sys/class/net/%s", ifname); > + if (mlx5_get_pci_addr(sysfs_if_path, &if_pci_addr)) > + continue; > + if (pci_addr->domain != if_pci_addr.domain || > +

[PATCH 4/8] net/mlx5: add sysfs check for Multiport E-Switch

2023-10-31 Thread Dariusz Sosnowski
This patch implements checking if Multiport E-Switch is enabled on a given PCI device, using sysfs Linux kernel interface. This facility will be used in follow up commits, which add support for such configuration to mlx5 PMD. MLNX_OFED mlx5_core kernel module versions which support Multiport E-Swi