aboutsummaryrefslogtreecommitdiff
path: root/net/ipv4/tcp_output.c
diff options
context:
space:
mode:
authorJulien Panis <[email protected]>2024-04-18 17:34:55 +0200
committerDavid S. Miller <[email protected]>2024-04-22 09:13:59 +0100
commit80b7aae9e3b8fc3f1678be61ccd81d5b6e6bd6be (patch)
tree3801b5bfb75bc4cf0f2962c8887b70334c0b01f2 /net/ipv4/tcp_output.c
parentbfa858f220ab8c950dd3e1310fee61950d0ecdae (diff)
net: ethernet: ti: am65-cpsw: Fix xdp_rxq error for disabled port
When an ethX port is disabled in the device tree, an error is returned by xdp_rxq_info_reg() function while transitioning the CPSW device to the up state. The message 'Missing net_device from driver' is output. This patch fixes the issue by registering xdp_rxq info only if ethX port is enabled (i.e. ndev pointer is not NULL). Fixes: 8acacc40f733 ("net: ethernet: ti: am65-cpsw: Add minimal XDP support") Link: https://lore.kernel.org/all/[email protected]/ Reported-by: Siddharth Vadapalli <[email protected]> Closes: https://gist.github.com/Siddharth-Vadapalli-at-TI/5ed0e436606001c247a7da664f75edee Signed-off-by: Julien Panis <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions