mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-22 02:17:36 -04:00
net/sched: prefer existing extack message in qdisc_offload_graft_helper()
Use NL_SET_ERR_MSG_WEAK so any existing error message (probably from the underlying driver) is used instead of the generic fallback. Signed-off-by: David Yang <mmyangfl@gmail.com> Link: https://patch.msgid.link/20260521010320.208138-2-mmyangfl@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
a482b63085
commit
d8785b59c3
@@ -859,7 +859,7 @@ void qdisc_offload_graft_helper(struct net_device *dev, struct Qdisc *sch,
|
||||
any_qdisc_is_offloaded |= old && old->flags & TCQ_F_OFFLOADED;
|
||||
|
||||
if (any_qdisc_is_offloaded)
|
||||
NL_SET_ERR_MSG(extack, "Offloading graft operation failed.");
|
||||
NL_SET_ERR_MSG_WEAK(extack, "Offloading graft operation failed.");
|
||||
}
|
||||
EXPORT_SYMBOL(qdisc_offload_graft_helper);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user