mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
net: sched: add extack support for offload via tc_cls_common_offload
Add extack support for hardware offload of classifiers. In order to achieve this, a pointer to a struct netlink_ext_ack is added to the struct tc_cls_common_offload that is passed to the callback for setting up the classifier. Function tc_cls_common_offload_init() is updated to support initialization of this new attribute. Signed-off-by: Quentin Monnet <[email protected]> Reviewed-by: Jakub Kicinski <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
631f65ff22
commit
8f0b425a71
5 changed files with 15 additions and 12 deletions
|
|
@ -602,15 +602,18 @@ struct tc_cls_common_offload {
|
|||
u32 chain_index;
|
||||
__be16 protocol;
|
||||
u32 prio;
|
||||
struct netlink_ext_ack *extack;
|
||||
};
|
||||
|
||||
static inline void
|
||||
tc_cls_common_offload_init(struct tc_cls_common_offload *cls_common,
|
||||
const struct tcf_proto *tp)
|
||||
const struct tcf_proto *tp,
|
||||
struct netlink_ext_ack *extack)
|
||||
{
|
||||
cls_common->chain_index = tp->chain->index;
|
||||
cls_common->protocol = tp->protocol;
|
||||
cls_common->prio = tp->prio;
|
||||
cls_common->extack = extack;
|
||||
}
|
||||
|
||||
struct tc_cls_u32_knode {
|
||||
|
|
|
|||
Loading…
Reference in a new issue