Skip to content

Commit b1a18d5

Browse files
Asbjørn Sloth Tønnesenkuba-moo
authored andcommitted
net: qede: use extack in qede_flow_parse_tcp_v6()
Convert qede_flow_parse_tcp_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_tcp_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 f2f9938 commit b1a18d5

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
@@ -1786,13 +1786,13 @@ qede_flow_parse_v4_common(struct flow_rule *rule,
17861786
}
17871787

17881788
static int
1789-
qede_flow_parse_tcp_v6(struct qede_dev *edev, struct flow_rule *rule,
1790-
struct qede_arfs_tuple *tuple)
1789+
qede_flow_parse_tcp_v6(struct flow_rule *rule, struct qede_arfs_tuple *tuple,
1790+
struct netlink_ext_ack *extack)
17911791
{
17921792
tuple->ip_proto = IPPROTO_TCP;
17931793
tuple->eth_proto = htons(ETH_P_IPV6);
17941794

1795-
return qede_flow_parse_v6_common(rule, tuple, NULL);
1795+
return qede_flow_parse_v6_common(rule, tuple, extack);
17961796
}
17971797

17981798
static int
@@ -1862,7 +1862,7 @@ qede_parse_flow_attr(struct qede_dev *edev, __be16 proto,
18621862
if (ip_proto == IPPROTO_TCP && proto == htons(ETH_P_IP))
18631863
rc = qede_flow_parse_tcp_v4(edev, rule, tuple);
18641864
else if (ip_proto == IPPROTO_TCP && proto == htons(ETH_P_IPV6))
1865-
rc = qede_flow_parse_tcp_v6(edev, rule, tuple);
1865+
rc = qede_flow_parse_tcp_v6(rule, tuple, NULL);
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))

0 commit comments

Comments
 (0)