Skip to content

Commit 9c8f5ed

Browse files
Asbjørn Sloth Tønnesenkuba-moo
authored andcommitted
net: qede: use extack in qede_flow_parse_udp_v4()
Convert qede_flow_parse_udp_v4() to take extack, and drop the edev argument. Pass extack in call to qede_flow_parse_v4_common(). In call to qede_flow_parse_udp_v4(), 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 b73ad5c commit 9c8f5ed

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
@@ -1816,13 +1816,13 @@ qede_flow_parse_udp_v6(struct flow_rule *rule, struct qede_arfs_tuple *tuple,
18161816
}
18171817

18181818
static int
1819-
qede_flow_parse_udp_v4(struct qede_dev *edev, struct flow_rule *rule,
1820-
struct qede_arfs_tuple *tuple)
1819+
qede_flow_parse_udp_v4(struct flow_rule *rule, struct qede_arfs_tuple *tuple,
1820+
struct netlink_ext_ack *extack)
18211821
{
18221822
tuple->ip_proto = IPPROTO_UDP;
18231823
tuple->eth_proto = htons(ETH_P_IP);
18241824

1825-
return qede_flow_parse_v4_common(rule, tuple, NULL);
1825+
return qede_flow_parse_v4_common(rule, tuple, extack);
18261826
}
18271827

18281828
static int
@@ -1864,7 +1864,7 @@ qede_parse_flow_attr(struct qede_dev *edev, __be16 proto,
18641864
else if (ip_proto == IPPROTO_TCP && proto == htons(ETH_P_IPV6))
18651865
rc = qede_flow_parse_tcp_v6(rule, tuple, NULL);
18661866
else if (ip_proto == IPPROTO_UDP && proto == htons(ETH_P_IP))
1867-
rc = qede_flow_parse_udp_v4(edev, rule, tuple);
1867+
rc = qede_flow_parse_udp_v4(rule, tuple, NULL);
18681868
else if (ip_proto == IPPROTO_UDP && proto == htons(ETH_P_IPV6))
18691869
rc = qede_flow_parse_udp_v6(rule, tuple, NULL);
18701870
else

0 commit comments

Comments
 (0)