mirror of
https://github.com/torvalds/linux.git
synced 2026-10-16 12:50:02 +02:00
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:
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| team_core.c | ||
| team_mode_activebackup.c | ||
| team_mode_broadcast.c | ||
| team_mode_loadbalance.c | ||
| team_mode_random.c | ||
| team_mode_roundrobin.c | ||
| team_nl.c | ||
| team_nl.h | ||