summaryrefslogtreecommitdiffstats
path: root/net/sched/act_csum.c
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@nvidia.com>2022-04-07 10:35:22 +0300
committerDavid S. Miller <davem@davemloft.net>2022-04-08 13:45:43 +0100
commitc2ccf84ecb715bb81dc7f51e69d680a95bf055ae (patch)
tree0d70d2fb932ae7ee9f514884a650acc16f41ba28 /net/sched/act_csum.c
parent11c95317bc1a70b305b978ac4bec39e224142094 (diff)
downloadlinux-c2ccf84ecb715bb81dc7f51e69d680a95bf055ae.tar.gz
linux-c2ccf84ecb715bb81dc7f51e69d680a95bf055ae.tar.bz2
linux-c2ccf84ecb715bb81dc7f51e69d680a95bf055ae.zip
net/sched: act_api: Add extack to offload_act_setup() callback
The callback is used by various actions to populate the flow action structure prior to offload. Pass extack to this callback so that the various actions will be able to report accurate error messages to user space. Signed-off-by: Ido Schimmel <idosch@nvidia.com> Reviewed-by: Petr Machata <petrm@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/act_csum.c')
-rw-r--r--net/sched/act_csum.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sched/act_csum.c b/net/sched/act_csum.c
index e0f515b774ca..22847ee009ef 100644
--- a/net/sched/act_csum.c
+++ b/net/sched/act_csum.c
@@ -696,7 +696,8 @@ static size_t tcf_csum_get_fill_size(const struct tc_action *act)
}
static int tcf_csum_offload_act_setup(struct tc_action *act, void *entry_data,
- u32 *index_inc, bool bind)
+ u32 *index_inc, bool bind,
+ struct netlink_ext_ack *extack)
{
if (bind) {
struct flow_action_entry *entry = entry_data;