net: sched: create tc_can_offload_extack() wrapper
authorQuentin Monnet <quentin.monnet@netronome.com>
Sat, 20 Jan 2018 01:44:48 +0000 (17:44 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Jan 2018 21:28:32 +0000 (16:28 -0500)
commitf9eda14f039294298643d034bc5c06340fe16cc0
tree76a2b604bdd1ee09153df6c89896daab7ddb7739
parent8f0b425a712b82732127ff7880f92504f20fcc11
net: sched: create tc_can_offload_extack() wrapper

Create a wrapper around tc_can_offload() that takes an additional
extack pointer argument in order to output an error message if TC
offload is disabled on the device.

In this way, the error message is handled by the core and can be the
same for all drivers.

Signed-off-by: Quentin Monnet <quentin.monnet@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/pkt_cls.h