Skip to content

Commit f84d527

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

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
@@ -1796,13 +1796,13 @@ qede_flow_parse_tcp_v6(struct flow_rule *rule, struct qede_arfs_tuple *tuple,
17961796
}
17971797

17981798
static int
1799-
qede_flow_parse_tcp_v4(struct qede_dev *edev, struct flow_rule *rule,
1800-
struct qede_arfs_tuple *tuple)
1799+
qede_flow_parse_tcp_v4(struct flow_rule *rule, struct qede_arfs_tuple *tuple,
1800+
struct netlink_ext_ack *extack)
18011801
{
18021802
tuple->ip_proto = IPPROTO_TCP;
18031803
tuple->eth_proto = htons(ETH_P_IP);
18041804

1805-
return qede_flow_parse_v4_common(rule, tuple, NULL);
1805+
return qede_flow_parse_v4_common(rule, tuple, extack);
18061806
}
18071807

18081808
static int
@@ -1860,7 +1860,7 @@ qede_parse_flow_attr(struct qede_dev *edev, __be16 proto,
18601860
}
18611861

18621862
if (ip_proto == IPPROTO_TCP && proto == htons(ETH_P_IP))
1863-
rc = qede_flow_parse_tcp_v4(edev, rule, tuple);
1863+
rc = qede_flow_parse_tcp_v4(rule, tuple, NULL);
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))

0 commit comments

Comments
 (0)