DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] virtio-net: bind systematically on all non blacklisted virtio-net devices
@ 2015-09-08  8:23 Franck Baudin
  2015-09-09  2:11 ` Ouyang, Changchun
  0 siblings, 1 reply; 4+ messages in thread
From: Franck Baudin @ 2015-09-08  8:23 UTC (permalink / raw)
  To: dev

Hi,

virtio-net driver bind on all virtio-net devices, even if the devices 
are used by the kernel (leading to kernel soft-lookup/panic). One way 
around is to blacklist the ports in use by Linux. This is the case since 
v2.0.0, in fact since commit da978dfdc43b59e290a46d7ece5fd19ce79a1162 
and the removal of the RTE_PCI_DRV_NEED_MAPPING driver flag.

Questions:
     1/ Is it the expected behaviour?
     2/ Why is it different from vmxnet3 pmd? In other words, should't 
we re-add the RTE_PCI_DRV_NEED_MAPPING to virtio pmd or remove it from 
pmxnet3 pmd?
     3/ If this is the expected behaviour, shouldn't we update 
dpdk_nic_bind.py (binding status irrelevant for virtio) tool and the 
documentation (mentioning igb_uio while misleading and useless)?

Thanks!

Best Regards,
Franck

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] virtio-net: bind systematically on all non blacklisted virtio-net devices
  2015-09-08  8:23 [dpdk-dev] virtio-net: bind systematically on all non blacklisted virtio-net devices Franck Baudin
@ 2015-09-09  2:11 ` Ouyang, Changchun
  2015-09-10 12:30   ` Franck Baudin
  0 siblings, 1 reply; 4+ messages in thread
From: Ouyang, Changchun @ 2015-09-09  2:11 UTC (permalink / raw)
  To: Franck Baudin, dev



> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Franck Baudin
> Sent: Tuesday, September 8, 2015 4:23 PM
> To: dev@dpdk.org
> Subject: [dpdk-dev] virtio-net: bind systematically on all non blacklisted
> virtio-net devices
> 
> Hi,
> 
> virtio-net driver bind on all virtio-net devices, even if the devices are used by
> the kernel (leading to kernel soft-lookup/panic). One way around is to
> blacklist the ports in use by Linux. This is the case since v2.0.0, in fact since
> commit da978dfdc43b59e290a46d7ece5fd19ce79a1162
> and the removal of the RTE_PCI_DRV_NEED_MAPPING driver flag.

It allows virtio-pmd not necessarily depend on igb_uio, this is which characteristic other pmd drivers don't have.

> 
> Questions:
>      1/ Is it the expected behaviour?
>      2/ Why is it different from vmxnet3 pmd? In other words, should't we re-
> add the RTE_PCI_DRV_NEED_MAPPING to virtio pmd or remove it from
> pmxnet3 pmd?
>      3/ If this is the expected behaviour, shouldn't we update
> dpdk_nic_bind.py (binding status irrelevant for virtio) tool and the
> documentation (mentioning igb_uio while misleading and useless)?
> 
> Thanks!
> 
> Best Regards,
> Franck
> 
> 
> 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] virtio-net: bind systematically on all non blacklisted virtio-net devices
  2015-09-09  2:11 ` Ouyang, Changchun
@ 2015-09-10 12:30   ` Franck Baudin
  2015-10-01 15:08     ` Thomas Monjalon
  0 siblings, 1 reply; 4+ messages in thread
From: Franck Baudin @ 2015-09-10 12:30 UTC (permalink / raw)
  To: Ouyang, Changchun, dev

On 09/09/15 04:11, Ouyang, Changchun wrote:
>
>> -----Original Message-----
>> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Franck Baudin
>> Sent: Tuesday, September 8, 2015 4:23 PM
>> To: dev@dpdk.org
>> Subject: [dpdk-dev] virtio-net: bind systematically on all non blacklisted
>> virtio-net devices
>>
>> Hi,
>>
>> virtio-net driver bind on all virtio-net devices, even if the devices are used by
>> the kernel (leading to kernel soft-lookup/panic). One way around is to
>> blacklist the ports in use by Linux. This is the case since v2.0.0, in fact since
>> commit da978dfdc43b59e290a46d7ece5fd19ce79a1162
>> and the removal of the RTE_PCI_DRV_NEED_MAPPING driver flag.
> It allows virtio-pmd not necessarily depend on igb_uio, this is which characteristic other pmd drivers don't have.
Thanks for your answer,

So this is the expected behaviour: all virtio interfaces are bound to 
the pmd driver.

Don't you think that dpdk_nic_bind.py should reflect the driver 
behaviour, and that the virtio documentation (still referencing igb_uio) 
be amended?

Regards,
Franck

>
>> Questions:
>>       1/ Is it the expected behaviour?
>>       2/ Why is it different from vmxnet3 pmd? In other words, should't we re-
>> add the RTE_PCI_DRV_NEED_MAPPING to virtio pmd or remove it from
>> pmxnet3 pmd?
>>       3/ If this is the expected behaviour, shouldn't we update
>> dpdk_nic_bind.py (binding status irrelevant for virtio) tool and the
>> documentation (mentioning igb_uio while misleading and useless)?
>>
>> Thanks!
>>
>> Best Regards,
>> Franck
>>
>>
>>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] virtio-net: bind systematically on all non blacklisted virtio-net devices
  2015-09-10 12:30   ` Franck Baudin
@ 2015-10-01 15:08     ` Thomas Monjalon
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Monjalon @ 2015-10-01 15:08 UTC (permalink / raw)
  To: Franck Baudin, Ouyang, Changchun, huawei.xie; +Cc: dev

2015-09-10 14:30, Franck Baudin:
> On 09/09/15 04:11, Ouyang, Changchun wrote:
> >> virtio-net driver bind on all virtio-net devices, even if the devices are used by
> >> the kernel (leading to kernel soft-lookup/panic). One way around is to
> >> blacklist the ports in use by Linux. This is the case since v2.0.0, in fact since
> >> commit da978dfdc43b59e290a46d7ece5fd19ce79a1162
> >> and the removal of the RTE_PCI_DRV_NEED_MAPPING driver flag.
> > 
> > It allows virtio-pmd not necessarily depend on igb_uio, this is which characteristic other pmd drivers don't have.
> 
> Thanks for your answer,
> 
> So this is the expected behaviour: all virtio interfaces are bound to 
> the pmd driver.
> 
> Don't you think that dpdk_nic_bind.py should reflect the driver 
> behaviour, and that the virtio documentation (still referencing igb_uio) 
> be amended?

Yes maybe that the documentation must be updated.
Anyone?

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-10-01 15:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-08  8:23 [dpdk-dev] virtio-net: bind systematically on all non blacklisted virtio-net devices Franck Baudin
2015-09-09  2:11 ` Ouyang, Changchun
2015-09-10 12:30   ` Franck Baudin
2015-10-01 15:08     ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).