]> 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)
commit2676a11692308261e3ece7be544767f07e424178
treebb78feff52f56124ea9075d8b0d47513b1fbba83
parent028a0469ec9d18f06c258f5304e2574d1e50caab
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