diff options
| author | Jeremy Kerr <jk@codeconstruct.com.au> | 2025-11-25 09:48:54 +0300 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2025-11-27 13:39:12 +0300 |
| commit | b3e528a5811bbc8246dbdb962f0812dc9b721681 (patch) | |
| tree | 09ed92895bdd9ef9441b47f5363462f613339667 /drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c | |
| parent | 8ec205e8797046b79d02a6359ebd57091b594cd8 (diff) | |
| download | linux-b3e528a5811bbc8246dbdb962f0812dc9b721681.tar.xz | |
net: mctp: unconditionally set skb->dev on dst output
On transmit, we are currently relying on skb->dev being set by
mctp_local_output() when we first set up the skb destination fields.
However, forwarded skbs do not use the local_output path, so will retain
their incoming netdev as their ->dev on tx. This does not work when
we're forwarding between interfaces.
Set skb->dev unconditionally in the transmit path, to allow for proper
forwarding.
We keep the skb->dev initialisation in mctp_local_output(), as we use it
for fragmentation.
Fixes: 269936db5eb3 ("net: mctp: separate routing database from routing operations")
Suggested-by: Vince Chang <vince_chang@aspeedtech.com>
Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Link: https://patch.msgid.link/20251125-dev-forward-v1-1-54ecffcd0616@codeconstruct.com.au
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c')
0 files changed, 0 insertions, 0 deletions
