Re: [PATCH net-next 0/3] support changing steering policies in tuntap

2017-09-30 Thread Michael S. Tsirkin
On Thu, Sep 28, 2017 at 12:09:05PM -0400, Willem de Bruijn wrote: > Programming from the guest is > indeed different. I don't fully understand that use case. Generally programming host BPF from guest is a clear win - think DOS protection. Guest runs logic to detect dos attacks, then passes the pro

Re: [PATCH net-next 0/3] support changing steering policies in tuntap

2017-09-29 Thread Jason Wang
On 2017年09月29日 00:09, Willem de Bruijn wrote: On Thu, Sep 28, 2017 at 3:23 AM, Jason Wang wrote: On 2017年09月28日 07:25, Willem de Bruijn wrote: In the future, both simple and sophisticated policy like RSS or other guest driven steering policies could be done on top. IMHO there should be a m

Re: [PATCH net-next 0/3] support changing steering policies in tuntap

2017-09-28 Thread Willem de Bruijn
On Thu, Sep 28, 2017 at 3:23 AM, Jason Wang wrote: > > > On 2017年09月28日 07:25, Willem de Bruijn wrote: In the future, both simple and sophisticated policy like RSS or other guest driven steering policies could be done on top. >>> >>> IMHO there should be a more practical exampl

Re: [PATCH net-next 0/3] support changing steering policies in tuntap

2017-09-28 Thread Jason Wang
On 2017年09月28日 13:02, Tom Herbert wrote: On Wed, Sep 27, 2017 at 4:25 PM, Willem de Bruijn wrote: In the future, both simple and sophisticated policy like RSS or other guest driven steering policies could be done on top. IMHO there should be a more practical example before adding all this in

Re: [PATCH net-next 0/3] support changing steering policies in tuntap

2017-09-28 Thread Jason Wang
On 2017年09月28日 07:25, Willem de Bruijn wrote: In the future, both simple and sophisticated policy like RSS or other guest driven steering policies could be done on top. IMHO there should be a more practical example before adding all this indirection. And it would be nice to understand why this

Re: [PATCH net-next 0/3] support changing steering policies in tuntap

2017-09-27 Thread Jason Wang
On 2017年09月28日 06:13, Michael S. Tsirkin wrote: On Wed, Sep 27, 2017 at 04:23:54PM +0800, Jason Wang wrote: Hi all: We use flow caches based flow steering policy now. This is good for connection-oriented communication such as TCP but not for the others e.g connectionless unidirectional worklo

Re: [PATCH net-next 0/3] support changing steering policies in tuntap

2017-09-27 Thread Tom Herbert
On Wed, Sep 27, 2017 at 4:25 PM, Willem de Bruijn wrote: >>> In the future, both simple and sophisticated policy like RSS or other guest >>> driven steering policies could be done on top. >> >> IMHO there should be a more practical example before adding all this >> indirection. And it would be nic

Re: [PATCH net-next 0/3] support changing steering policies in tuntap

2017-09-27 Thread Willem de Bruijn
>> In the future, both simple and sophisticated policy like RSS or other guest >> driven steering policies could be done on top. > > IMHO there should be a more practical example before adding all this > indirection. And it would be nice to understand why this queue selection > needs to be tun spec

Re: [PATCH net-next 0/3] support changing steering policies in tuntap

2017-09-27 Thread Michael S. Tsirkin
On Wed, Sep 27, 2017 at 04:23:54PM +0800, Jason Wang wrote: > Hi all: > > We use flow caches based flow steering policy now. This is good for > connection-oriented communication such as TCP but not for the others > e.g connectionless unidirectional workload which cares only about > pps. This calls

[PATCH net-next 0/3] support changing steering policies in tuntap

2017-09-27 Thread Jason Wang
Hi all: We use flow caches based flow steering policy now. This is good for connection-oriented communication such as TCP but not for the others e.g connectionless unidirectional workload which cares only about pps. This calls the ability of supporting changing steering policies in tuntap which wa