]> git.baikalelectronics.ru Git - kernel.git/commit
net/sched: flower: Return error when hw can't offload and skip_sw is set
authorAmir Vadai <amirva@mellanox.com>
Mon, 13 Jun 2016 09:06:39 +0000 (12:06 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Jun 2016 05:37:26 +0000 (22:37 -0700)
commit59a49d69250e2c4e7e5359c2f5b4dd989be7334c
treebb78feff52f56124ea9075d8b0d47513b1fbba83
parentc5ede45d05f432541f33d74936dd0de2ebf4f285
net/sched: flower: Return error when hw can't offload and skip_sw is set

When skip_sw is set and hardware fails to apply filter, return error to
user. This will make error propagation logic similar to the one
currently used in u32 classifier.
Also, changed code to use tc_skip_sw() utility function.

Signed-off-by: Amir Vadai <amirva@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_flower.c