Skip to content

Commit b73ad5c

Browse files
Asbjørn Sloth Tønnesenkuba-moo
authored andcommitted
net: qede: use extack in qede_flow_parse_udp_v6()
Convert qede_flow_parse_udp_v6() to take extack, and drop the edev argument. Pass extack in call to qede_flow_parse_v6_common(). In call to qede_flow_parse_udp_v6(), use NULL as extack for now, until a subsequent patch makes extack available. Only compile tested. Signed-off-by: Asbjørn Sloth Tønnesen <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent f84d527 commit b73ad5c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/net/ethernet/qlogic/qede/qede_filter.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1806,13 +1806,13 @@ qede_flow_parse_tcp_v4(struct flow_rule *rule, struct qede_arfs_tuple *tuple,
18061806
}
18071807

18081808
static int
1809-
qede_flow_parse_udp_v6(struct qede_dev *edev, struct flow_rule *rule,
1810-
struct qede_arfs_tuple *tuple)
1809+
qede_flow_parse_udp_v6(struct flow_rule *rule, struct qede_arfs_tuple *tuple,
1810+
struct netlink_ext_ack *extack)
18111811
{
18121812
tuple->ip_proto = IPPROTO_UDP;
18131813
tuple->eth_proto = htons(ETH_P_IPV6);
18141814

1815-
return qede_flow_parse_v6_common(rule, tuple, NULL);
1815+
return qede_flow_parse_v6_common(rule, tuple, extack);
18161816
}
18171817

18181818
static int
@@ -1866,7 +1866,7 @@ qede_parse_flow_attr(struct qede_dev *edev, __be16 proto,
18661866
else if (ip_proto == IPPROTO_UDP && proto == htons(ETH_P_IP))
18671867
rc = qede_flow_parse_udp_v4(edev, rule, tuple);
18681868
else if (ip_proto == IPPROTO_UDP && proto == htons(ETH_P_IPV6))
1869-
rc = qede_flow_parse_udp_v6(edev, rule, tuple);
1869+
rc = qede_flow_parse_udp_v6(rule, tuple, NULL);
18701870
else
18711871
DP_NOTICE(edev, "Invalid protocol request\n");
18721872

0 commit comments

Comments
 (0)