[PATCH net 2/2] net: cls_u32: be more strict about skip-sw flag for knodes

2016-06-08 Thread Jakub Kicinski
Return an error if user requested skip-sw and the underlaying hardware cannot handle tc offloads (or offloads are disabled). This patch fixes the knode handling. Signed-off-by: Jakub Kicinski --- net/sched/cls_u32.c | 37 +++-- 1 file changed, 19 insertions(+), 18

Re: [PATCH net 2/2] net: cls_u32: be more strict about skip-sw flag

2016-06-06 Thread Samudrala, Sridhar
On 6/6/2016 8:16 AM, Jakub Kicinski wrote: Return an error if user requested skip-sw and the underlaying hardware cannot handle tc offloads (or offloads are disabled). Signed-off-by: Jakub Kicinski looks good. I think we need similar checks in u32_replace_hw_knode() too. --- net/sched/

[PATCH net 2/2] net: cls_u32: be more strict about skip-sw flag

2016-06-06 Thread Jakub Kicinski
Return an error if user requested skip-sw and the underlaying hardware cannot handle tc offloads (or offloads are disabled). Signed-off-by: Jakub Kicinski --- net/sched/cls_u32.c | 21 +++-- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/net/sched/cls_u32.c b/net