diff options
| author | Weiming Shi <bestswngs@gmail.com> | 2026-10-02 02:23:26 +0800 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-10-06 17:20:44 -0700 |
| commit | 489114c9ecae44e523361a4b3e610ee5ebd9189c (patch) | |
| tree | 53cdc4955561e6b65438ceae0647804533077dc1 /tools/perf/scripts/python/task-analyzer.py | |
| parent | b7454f1940c5e6d92e753853c476a769e452f30a (diff) | |
| download | linux-489114c9ecae44e523361a4b3e610ee5ebd9189c.tar.gz linux-489114c9ecae44e523361a4b3e610ee5ebd9189c.zip | |
net: team: free skb when broadcast has no txable port
bc_transmit() sends the original skb through the last txable port.
When no port is txable, it returns false without consuming the skb, but
team_xmit() still returns NETDEV_TX_OK. AF_PACKET sends then retain the
skb and its socket write-memory charge.
A TX-enabled, link-down port keeps the broadcast transmit op installed.
Carrier can stay up through a second link-up, TX-disabled port or be
forced on by userspace. Free the original skb on the no-port path while
leaving the existing drop accounting intact.
Discovered by Sashiko during review of previous commit.
Cc: stable@vger.kernel.org
Fixes: 5fc889911a99 ("team: add broadcast mode")
Signed-off-by: Weiming Shi <bestswngs@gmail.com>
Link: https://patch.msgid.link/20261001182326.572045-3-bestswngs@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
