net: cls_u32: be more strict about skip-sw flag for knodes
authorJakub Kicinski <jakub.kicinski@netronome.com>
Wed, 8 Jun 2016 19:11:04 +0000 (20:11 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Jun 2016 04:43:14 +0000 (21:43 -0700)
commit201c44bd8ffa899f07b7b322a73e19baf0ada1e5
tree15c55d1d1865928446c70e7d4754a4fd01310fc7
parent6eef3801e719e4ea9c15c01b1d77706f47331166
net: cls_u32: be more strict about skip-sw flag for knodes

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 <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_u32.c