Skip to content

Commit 8415487

Browse files
Asbjørn Sloth Tønnesenkuba-moo
authored andcommitted
net: qede: use extack in qede_parse_actions()
Convert DP_NOTICE/DP_INFO to NL_SET_ERR_MSG_MOD. Keep edev around for use with QEDE_RSS_COUNT(). 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 d2a437e commit 8415487

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1671,7 +1671,7 @@ static int qede_parse_actions(struct qede_dev *edev,
16711671
int i;
16721672

16731673
if (!flow_action_has_entries(flow_action)) {
1674-
DP_NOTICE(edev, "No actions received\n");
1674+
NL_SET_ERR_MSG_MOD(extack, "No actions received");
16751675
return -EINVAL;
16761676
}
16771677

@@ -1687,7 +1687,8 @@ static int qede_parse_actions(struct qede_dev *edev,
16871687
break;
16881688

16891689
if (act->queue.index >= QEDE_RSS_COUNT(edev)) {
1690-
DP_INFO(edev, "Queue out-of-bounds\n");
1690+
NL_SET_ERR_MSG_MOD(extack,
1691+
"Queue out-of-bounds");
16911692
return -EINVAL;
16921693
}
16931694
break;

0 commit comments

Comments
 (0)