Re: [dpdk-dev] KNI alternatives

2021-01-13 Thread Stephen Hemminger
Controlling DPDK interfaces with KNI is known to be broken. Kni calls usepspace with network mutex held. The problem is not fixable. The kernel does provide netlink and devlink API's but there is no generic solution with DPDK. On Wed, Jan 13, 2021, 11:54 AM Igor Ryzhov wrote: > > > On Wed, Jan

Re: [dpdk-dev] KNI alternatives

2021-01-13 Thread Igor Ryzhov
On Wed, Jan 13, 2021 at 9:45 PM Thomas Monjalon wrote: > 13/01/2021 19:17, Igor Ryzhov: > > On Wed, Jan 13, 2021 at 8:10 PM Stephen Hemminger < > > step...@networkplumber.org> wrote: > > > On Wed, Jan 13, 2021, 9:06 AM Thomas Monjalon > wrote: > > > > > > > Hi, > > > > > > > > As discussed today

Re: [dpdk-dev] KNI alternatives

2021-01-13 Thread Thomas Monjalon
13/01/2021 19:17, Igor Ryzhov: > On Wed, Jan 13, 2021 at 8:10 PM Stephen Hemminger < > step...@networkplumber.org> wrote: > > On Wed, Jan 13, 2021, 9:06 AM Thomas Monjalon wrote: > > > > > Hi, > > > > > > As discussed today in the techboard meeting, KNI has probably > > > better alternatives today

Re: [dpdk-dev] KNI alternatives

2021-01-13 Thread Igor Ryzhov
On Wed, Jan 13, 2021 at 8:10 PM Stephen Hemminger < step...@networkplumber.org> wrote: > Last time I tried. > Virtio user was as fast as KNI and consumed less cpu. Was seeing 10mpps > Tap was much slower. Like 1mpps. > > Vpp uses virtio user. > > Sorry for top post. Only have phone internet > > On

Re: [dpdk-dev] KNI alternatives

2021-01-13 Thread Stephen Hemminger
Last time I tried. Virtio user was as fast as KNI and consumed less cpu. Was seeing 10mpps Tap was much slower. Like 1mpps. Vpp uses virtio user. Sorry for top post. Only have phone internet On Wed, Jan 13, 2021, 9:06 AM Thomas Monjalon wrote: > Hi, > > As discussed today in the techboard meet

[dpdk-dev] KNI alternatives

2021-01-13 Thread Thomas Monjalon
Hi, As discussed today in the techboard meeting, KNI has probably better alternatives today without using an out-of-tree module. Virtio-user is a good candidate to replace KNI. What is the performance of TAP? Is there a way to leverage af_packet, af_xdp, or even pcap interfaces? In order to avoid