Skip to content

Conversation

KanjiMonster
Copy link
Contributor

Since OF-DPA brings all links up at boot, there is a chance that the is a link state change before we received the port table and created the ports.

If this happens, then we get a change modification for speed/link, but there is no link to modify. This is harmless since we will set the link to down once we do create the port interface, but triggers a warning from knet on startup:

kernel: linux-bcm-knet (1197): Warning: unknown network interface: 'port1'
kernel: linux-bcm-knet (1197): Warning: unknown network interface: 'port2'
...
kernel: linux-bcm-knet (1197): Warning: unknown network interface: 'port54'

So check if the link is created before trying to update its state.

Fixes: 40f68c8 ("add knet manager for using knet based interfaces")

@KanjiMonster KanjiMonster requested a review from jklare July 25, 2025 11:33
@jklare jklare removed their request for review July 31, 2025 09:44
Since OF-DPA brings all links up at boot, there is a chance that the is
a link state change before we received the port table and created the
ports.

If this happens, then we get a change modification for speed/link, but
there is no link to modify. This is harmless since we will set the link
to down once we do create the port interface, but triggers a warning
from knet on startup:

kernel: linux-bcm-knet (1197): Warning: unknown network interface: 'port1'
kernel: linux-bcm-knet (1197): Warning: unknown network interface: 'port2'
...
kernel: linux-bcm-knet (1197): Warning: unknown network interface: 'port54'

So check if the link is created before trying to update its state.

Fixes: 40f68c8 ("add knet manager for using knet based interfaces")
Signed-off-by: Jonas Gorski <[email protected]>
@KanjiMonster KanjiMonster force-pushed the jogo_knet_avoid_error_knet branch from 1ab3983 to cefce26 Compare August 14, 2025 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant