Re: [PATCH] util: Add phys_port_name support on virPCIGetNetName

2020-10-27 Thread Dmytro Linkin
On Mon, Sep 28, 2020 at 12:56:12PM +0300, Dmytro Linkin wrote: > On Tue, Sep 22, 2020 at 08:31:15AM -0400, Laine Stump wrote: > > On 8/28/20 6:53 AM, Dmytro Linkin wrote: > > >Current virPCIGetNetName() logic is to get net device name by checking > > >it's phys

Re: [PATCH] util: Add phys_port_name support on virPCIGetNetName

2020-09-28 Thread Dmytro Linkin
On Tue, Sep 22, 2020 at 08:31:15AM -0400, Laine Stump wrote: > On 8/28/20 6:53 AM, Dmytro Linkin wrote: > >Current virPCIGetNetName() logic is to get net device name by checking > >it's phys_port_id, if caller provide it, or by it's index (eg, by it's > >position a

Re: [PATCH] util: Add phys_port_name support on virPCIGetNetName

2020-08-31 Thread Dmytro Linkin
+Adrian,Moshe On Fri, Aug 28, 2020 at 01:53:21PM +0300, Dmytro Linkin wrote: > Current virPCIGetNetName() logic is to get net device name by checking > it's phys_port_id, if caller provide it, or by it's index (eg, by it's > position at sysfs net directory). This approach worked fine

[PATCH] util: Add phys_port_name support on virPCIGetNetName

2020-08-28 Thread Dmytro Linkin
t's regex provided, or - get net device by it's index (position) in sysfs net directory. Also, make getting content of iface sysfs files more generic. Signed-off-by: Dmytro Linkin Reviewed-by: Adrian Chiris --- src/hypervisor/virhostdev.c | 2 +- sr