Skip to contentSkip to conversation

netconsole not working on bridge+atlantic

DISCUSSION Chris Adams 3 participants 4 messages May 20, 2023 – May 23, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

I have a system with an Aquantia AQC107 NIC connected to a bridge (for VM NICs). I set up netconsole on it, and it logs that it configures correctly in dmesg, but it doesn't actually send anything (or log any errors). Any ideas?

This is on Fedora 37, updated to distro kernel 6.3.3-100.fc37.x86_64. It hasn't worked for some time (not sure exactly when).

Signature · 1 line
Chris Adams <[email protected]>
#1 lore raw

+CC maintainers,

Quoted 4 lines · Chris Adams

I have a system with an Aquantia AQC107 NIC connected to a bridge (for VM NICs). I set up netconsole on it, and it logs that it configures correctly in dmesg, but it doesn't actually send anything (or log any errors). Any ideas?

It does not look like there is a ndo_poll_controller callback implemented by the atlantic driver which is usually a prerequisite to supporting netconsole.

Quoted 3 lines

This is on Fedora 37, updated to distro kernel 6.3.3-100.fc37.x86_64. It hasn't worked for some time (not sure exactly when).

Does that mean that it worked up to a certain point and then stopped?

Signature · 1 line
Florian
#2 lore raw
Quoted 9 lines · Florian Fainelli
Quoted 4 lines · Chris Adams

I have a system with an Aquantia AQC107 NIC connected to a bridge (for VM NICs). I set up netconsole on it, and it logs that it configures correctly in dmesg, but it doesn't actually send anything (or log any errors). Any ideas?

It does not look like there is a ndo_poll_controller callback implemented by the atlantic driver which is usually a prerequisite to supporting netconsole.

Is that something that netconsole (or anything else in the kernel) could check and warn about? Is there a way other than looking at the source (and knowing what to look for) to tell which NICs do or don't support netconsole? I searched around and didn't see that netconsole is only expected to work with some NICs, or has certain requirements for working.

Quoted 4 lines
Quoted 2 lines

This is on Fedora 37, updated to distro kernel 6.3.3-100.fc37.x86_64. It hasn't worked for some time (not sure exactly when).

Does that mean that it worked up to a certain point and then stopped?

I'm not sure, I didn't check it for a while (I only use it when something isn't working right, and that doesn't happen much). It's possible it hasn't worked since I added the Aquantia NIC.

Signature · 1 line
Chris Adams <[email protected]>
maintainer
#3 lore raw
Quoted 10 lines · On Fri, 19 May 2023 22:09:24 -0500 Chris Adams wrote:
Quoted 9 lines · Florian Fainelli
Quoted 4 lines · Chris Adams

I have a system with an Aquantia AQC107 NIC connected to a bridge (for VM NICs). I set up netconsole on it, and it logs that it configures correctly in dmesg, but it doesn't actually send anything (or log any errors). Any ideas?

It does not look like there is a ndo_poll_controller callback implemented by the atlantic driver which is usually a prerequisite to supporting netconsole.

I don't think ndo_poll_controller is strictly necessary any more. If absent core will poll all NAPI instances of the driver with budget of 0.

Quoted 7 lines

Is that something that netconsole (or anything else in the kernel) could check and warn about? Is there a way other than looking at the source (and knowing what to look for) to tell which NICs do or don't support netconsole? I searched around and didn't see that netconsole is only expected to work with some NICs, or has certain requirements for working.

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

This is on Fedora 37, updated to distro kernel 6.3.3-100.fc37.x86_64. It hasn't worked for some time (not sure exactly when).

Does that mean that it worked up to a certain point and then stopped?

I'm not sure, I didn't check it for a while (I only use it when something isn't working right, and that doesn't happen much). It's possible it hasn't worked since I added the Aquantia NIC.

You can try to use the kfree_skb tracepoint to see where the netcons skbs get dropped.