]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: plumb drop reasons to __dev_queue_xmit()
authorEric Dumazet <edumazet@google.com>
Thu, 12 Mar 2026 20:18:24 +0000 (20:18 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 14 Mar 2026 15:38:06 +0000 (08:38 -0700)
commit045f977dd4ebdd3ad8e96cf684917adfc5805adb
treed6a54821ca92fa539c8f1bf1113fe9b3f341abb5
parentd15d3de94a4766fb43d7fe7a72ed0479fb268131
net: plumb drop reasons to __dev_queue_xmit()

Add drop reasons to __dev_queue_xmit():

- SKB_DROP_REASON_DEV_READY : device is not UP.

- SKB_DROP_REASON_RECURSION_LIMIT : recursion limit on virtual device is hit.

Also add an unlikely() for the SKB_DROP_REASON_DEV_READY case,
and reduce indentation level.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Joe Damato <joe@dama.to>
Link: https://patch.msgid.link/20260312201824.203093-3-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/dev.c