Re: [ovs-dev] [PATCH RFC] WIP: netdev-tpacket: Add AF_PACKET v3 support.

2020-01-03 Thread William Tu
On Fri, Jan 03, 2020 at 02:28:03PM +0100, Ilya Maximets wrote: > On 03.01.2020 00:54, William Tu wrote: > > On Mon, Dec 23, 2019 at 5:22 PM Yi Yang (杨燚)-云服务集团 > > wrote: > >> > >> William, maybe you don't know that kind of tap interface you're saying > >> only can be used for VM, that is why ope

Re: [ovs-dev] [PATCH RFC] WIP: netdev-tpacket: Add AF_PACKET v3 support.

2020-01-03 Thread William Tu
On Fri, Jan 3, 2020 at 5:28 AM Ilya Maximets wrote: > > On 03.01.2020 00:54, William Tu wrote: > > On Mon, Dec 23, 2019 at 5:22 PM Yi Yang (杨燚)-云服务集团 > > wrote: > >> > >> William, maybe you don't know that kind of tap interface you're saying > >> only can be used for VM, that is why openvswitch

Re: [ovs-dev] [PATCH RFC] WIP: netdev-tpacket: Add AF_PACKET v3 support.

2020-01-03 Thread Ilya Maximets
On 03.01.2020 00:54, William Tu wrote: > On Mon, Dec 23, 2019 at 5:22 PM Yi Yang (杨燚)-云服务集团 > wrote: >> >> William, maybe you don't know that kind of tap interface you're saying only >> can be used for VM, that is why openvswitch has to introduce internal type >> for the case I'm saying. There

Re: [ovs-dev] [PATCH RFC] WIP: netdev-tpacket: Add AF_PACKET v3 support.

2020-01-02 Thread William Tu
On Mon, Dec 23, 2019 at 5:22 PM Yi Yang (杨燚)-云服务集团 wrote: > > William, maybe you don't know that kind of tap interface you're saying only > can be used for VM, that is why openvswitch has to introduce internal type > for the case I'm saying. > > In OVS DPDK case, if you create the below interfac

Re: [ovs-dev] [PATCH RFC] WIP: netdev-tpacket: Add AF_PACKET v3 support.

2019-12-23 Thread William Tu
On Sun, Dec 22, 2019 at 4:35 PM Yi Yang (杨燚)-云服务集团 wrote: > > Thanks William, af_packet only can open tap interface, it can't create tap > interface. Tap interface onlu can be created by the below way > > ovs-vsctl add-port tapX -- set interface tapX type=internal > > this tap is very special, it

Re: [ovs-dev] [PATCH RFC] WIP: netdev-tpacket: Add AF_PACKET v3 support.

2019-12-20 Thread William Tu
On Fri, Dec 20, 2019 at 01:14:37PM -0800, Ben Pfaff wrote: > On Fri, Dec 20, 2019 at 09:49:44AM -0800, William Tu wrote: > > On Thu, Dec 19, 2019 at 08:44:30PM -0800, Ben Pfaff wrote: > > > On Thu, Dec 19, 2019 at 04:41:25PM -0800, William Tu wrote: > > > > Currently the performance of sending pack

Re: [ovs-dev] [PATCH RFC] WIP: netdev-tpacket: Add AF_PACKET v3 support.

2019-12-20 Thread Ben Pfaff
On Fri, Dec 20, 2019 at 09:49:44AM -0800, William Tu wrote: > On Thu, Dec 19, 2019 at 08:44:30PM -0800, Ben Pfaff wrote: > > On Thu, Dec 19, 2019 at 04:41:25PM -0800, William Tu wrote: > > > Currently the performance of sending packets from userspace > > > ovs to kernel veth device is pretty bad as

Re: [ovs-dev] [PATCH RFC] WIP: netdev-tpacket: Add AF_PACKET v3 support.

2019-12-20 Thread William Tu
On Thu, Dec 19, 2019 at 08:44:30PM -0800, Ben Pfaff wrote: > On Thu, Dec 19, 2019 at 04:41:25PM -0800, William Tu wrote: > > Currently the performance of sending packets from userspace > > ovs to kernel veth device is pretty bad as reported from YiYang[1]. > > The patch adds AF_PACKET v3, tpacket v

Re: [ovs-dev] [PATCH RFC] WIP: netdev-tpacket: Add AF_PACKET v3 support.

2019-12-19 Thread Ben Pfaff
On Thu, Dec 19, 2019 at 04:41:25PM -0800, William Tu wrote: > Currently the performance of sending packets from userspace > ovs to kernel veth device is pretty bad as reported from YiYang[1]. > The patch adds AF_PACKET v3, tpacket v3, as another way to > tx/rx packet to linux device, hopefully show

[ovs-dev] [PATCH RFC] WIP: netdev-tpacket: Add AF_PACKET v3 support.

2019-12-19 Thread William Tu
Currently the performance of sending packets from userspace ovs to kernel veth device is pretty bad as reported from YiYang[1]. The patch adds AF_PACKET v3, tpacket v3, as another way to tx/rx packet to linux device, hopefully showing better performance. AF_PACKET v3 should get closed to 1Mpps, as