Re: [PATCH net-next V2 01/10] net/flower: Introduce hardware offload support

2016-03-06 Thread Amir Vadai
On Fri, Mar 04, 2016 at 09:01:39AM -0800, John Fastabend wrote: > On 16-03-03 06:55 AM, Amir Vadai wrote: > > This patch is based on a patch made by John Fastabend. > > It adds support for offloading cls_flower. > > when NETIF_F_HW_TC is on: > > flags = 0 => Rule will be processed twice - b

Re: [PATCH net-next V2 01/10] net/flower: Introduce hardware offload support

2016-03-04 Thread John Fastabend
On 16-03-03 06:55 AM, Amir Vadai wrote: > This patch is based on a patch made by John Fastabend. > It adds support for offloading cls_flower. > when NETIF_F_HW_TC is on: > flags = 0 => Rule will be processed twice - by hardware, and if > still relevant, by software. >

Re: [PATCH net-next V2 01/10] net/flower: Introduce hardware offload support

2016-03-03 Thread Amir Vadai"
On Thu, Mar 03, 2016 at 12:30:33PM -0500, David Miller wrote: > From: Amir Vadai > Date: Thu, 3 Mar 2016 16:55:51 +0200 > > > @@ -454,11 +501,13 @@ static int fl_change(struct net *net, struct sk_buff > > *in_skb, > > u32 handle, struct nlattr **tca, > > unsign

Re: [PATCH net-next V2 01/10] net/flower: Introduce hardware offload support

2016-03-03 Thread David Miller
From: Amir Vadai Date: Thu, 3 Mar 2016 16:55:51 +0200 > @@ -454,11 +501,13 @@ static int fl_change(struct net *net, struct sk_buff > *in_skb, >u32 handle, struct nlattr **tca, >unsigned long *arg, bool ovr) > { > + struct net_device *dev = tp->q->dev

Re: [PATCH net-next V2 01/10] net/flower: Introduce hardware offload support

2016-03-03 Thread Jiri Pirko
Thu, Mar 03, 2016 at 03:55:51PM CET, a...@vadai.me wrote: >This patch is based on a patch made by John Fastabend. >It adds support for offloading cls_flower. >when NETIF_F_HW_TC is on: > flags = 0 => Rule will be processed twice - by hardware, and if > still relevant, by

[PATCH net-next V2 01/10] net/flower: Introduce hardware offload support

2016-03-03 Thread Amir Vadai
This patch is based on a patch made by John Fastabend. It adds support for offloading cls_flower. when NETIF_F_HW_TC is on: flags = 0 => Rule will be processed twice - by hardware, and if still relevant, by software. flags = SKIP_HW => Rull will be processed by softwa