[dts] [next]net_device: fix nic_pci_num not defined.
Xu, HuilongX
huilongx.xu at intel.com
Fri Sep 2 03:10:56 CEST 2016
Acked-by: huilong xu <huilongx.xu at intel.com>
> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of Lijuan Tu
> Sent: Monday, August 29, 2016 2:40 PM
> To: dts at dpdk.org
> Cc: Tu, LijuanX A
> Subject: [dts] [next]net_device: fix nic_pci_num not defined.
>
> Signed-off-by: Lijuan Tu <lijuanx.a.tu at intel.com>
> ---
> nics/net_device.py | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/nics/net_device.py b/nics/net_device.py
> index 897ceb9..2ad950e 100644
> --- a/nics/net_device.py
> +++ b/nics/net_device.py
> @@ -768,6 +768,7 @@ class NetDevice(object):
> Bind NIC port to the pci-stub driver on linux.
> """
> new_id = self.pci_id.replace(':', ' ')
> + nic_pci_num = ':'.join([domain_id, bus_id, devfun_id])
> self.__send_expect(
> "echo %s > /sys/bus/pci/drivers/pci-stub/new_id" % new_id,
> "# ")
> self.__send_expect(
> --
> 1.9.3
More information about the dts
mailing list