Commit 6f88f125 authored by Asbjørn Sloth Tønnesen's avatar Asbjørn Sloth Tønnesen Committed by Jakub Kicinski

net: qede: use extack in qede_set_v6_tuple_to_profile()

Convert qede_set_v6_tuple_to_profile() to take extack,
and drop the edev argument.

Convert DP_INFO call to use NL_SET_ERR_MSG_MOD instead.

In calls to qede_set_v6_tuple_to_profile(), use NULL as extack
for now, until a subsequent patch makes extack available.

Only compile tested.
Signed-off-by: default avatarAsbjørn Sloth Tønnesen <ast@fiberby.net>
Reviewed-by: default avatarSimon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20240508143404.95901-3-ast@fiberby.netSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent a7c9540e
...@@ -1549,9 +1549,9 @@ static int qede_set_v4_tuple_to_profile(struct qede_dev *edev, ...@@ -1549,9 +1549,9 @@ static int qede_set_v4_tuple_to_profile(struct qede_dev *edev,
return 0; return 0;
} }
static int qede_set_v6_tuple_to_profile(struct qede_dev *edev, static int qede_set_v6_tuple_to_profile(struct qede_arfs_tuple *t,
struct qede_arfs_tuple *t, struct in6_addr *zaddr,
struct in6_addr *zaddr) struct netlink_ext_ack *extack)
{ {
/* We must have Only 4-tuples/l4 port/src ip/dst ip /* We must have Only 4-tuples/l4 port/src ip/dst ip
* as an input. * as an input.
...@@ -1573,7 +1573,7 @@ static int qede_set_v6_tuple_to_profile(struct qede_dev *edev, ...@@ -1573,7 +1573,7 @@ static int qede_set_v6_tuple_to_profile(struct qede_dev *edev,
!memcmp(&t->src_ipv6, zaddr, sizeof(struct in6_addr))) { !memcmp(&t->src_ipv6, zaddr, sizeof(struct in6_addr))) {
t->mode = QED_FILTER_CONFIG_MODE_IP_DEST; t->mode = QED_FILTER_CONFIG_MODE_IP_DEST;
} else { } else {
DP_INFO(edev, "Invalid N-tuple\n"); NL_SET_ERR_MSG_MOD(extack, "Invalid N-tuple");
return -EOPNOTSUPP; return -EOPNOTSUPP;
} }
...@@ -1752,7 +1752,7 @@ qede_flow_parse_v6_common(struct qede_dev *edev, struct flow_rule *rule, ...@@ -1752,7 +1752,7 @@ qede_flow_parse_v6_common(struct qede_dev *edev, struct flow_rule *rule,
if (err) if (err)
return err; return err;
return qede_set_v6_tuple_to_profile(edev, t, &zero_addr); return qede_set_v6_tuple_to_profile(t, &zero_addr, NULL);
} }
static int static int
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment