netconsole breaks netpoll on bridge
Subsystems (3)
Hi,
i'm using a vanilla 3.10.43 kernel and netconsole on top of a bridge.
netconsole is used with vmbr0 (bridge) which is on top of bond0.
If i want to add another bridge to vmbr0 is fails as long as netconsole is in use.
# brctl addif vmbr0 fwpr2004p0 can't add fwpr2004p0 to bridge vmbr0: Unknown error 524
Kernel output:
netpoll: (null): fwpr2004p0 doesn't support polling, aborting
If i do rmmod netconsole - everything is working fine again.
Greets,
Stefan
Quoted 9 lines · Stefan Priebe - Profihost AG
Hi,
i'm using a vanilla 3.10.43 kernel and netconsole on top of a bridge.
netconsole is used with vmbr0 (bridge) which is on top of bond0.
If i want to add another bridge to vmbr0 is fails as long as netconsole is in use.
Quoted 8 lines
# brctl addif vmbr0 fwpr2004p0 can't add fwpr2004p0 to bridge vmbr0: Unknown error 524Kernel output:
netpoll: (null): fwpr2004p0 doesn't support polling, abortingIf i do rmmod netconsole - everything is working fine again.
This is expected, you can't add an interface which doesn't support netpoll to a bridge which is running netpoll.
You should stop netpoll before adding it.
Quoted 17 lines
Am 16.06.2014 um 20:05 schrieb Cong Wang <[email protected]>:
Quoted 12 lines · Stefan Priebe - Profihost AG
Hi,
i'm using a vanilla 3.10.43 kernel and netconsole on top of a bridge.
netconsole is used with vmbr0 (bridge) which is on top of bond0.
If i want to add another bridge to vmbr0 is fails as long as netconsole is in use.
# brctl addif vmbr0 fwpr2004p0 can't add fwpr2004p0 to bridge vmbr0: Unknown error 524
Quoted 7 lines
Quoted 4 lines
Kernel output:
netpoll: (null): fwpr2004p0 doesn't support polling, abortingIf i do rmmod netconsole - everything is working fine again.
This is expected, you can't add an interface which doesn't support netpoll to a bridge which is running netpoll.
Thanks, so i can't use netconsole at a bridge used for vms?
Quoted 2 lines
You should stop netpoll before adding it.
How to do that? What disadvantage does this have?
Thanks!
Stefan
Quoted 20 lines · Stefan Priebe - Profihost AG
Quoted 20 lines
Am 16.06.2014 um 20:05 schrieb Cong Wang <[email protected]>:
Quoted 15 lines · Stefan Priebe - Profihost AG
Hi,
i'm using a vanilla 3.10.43 kernel and netconsole on top of a bridge.
netconsole is used with vmbr0 (bridge) which is on top of bond0.
If i want to add another bridge to vmbr0 is fails as long as netconsole is in use.
# brctl addif vmbr0 fwpr2004p0 can't add fwpr2004p0 to bridge vmbr0: Unknown error 524Kernel output:
netpoll: (null): fwpr2004p0 doesn't support polling, aborting
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
If i do rmmod netconsole - everything is working fine again.
This is expected, you can't add an interface which doesn't support netpoll to a bridge which is running netpoll.
Thanks, so i can't use netconsole at a bridge used for vms?
You can, but you need to make sure all the devices under this bridge support netpoll. Not considering mac learning, bridge just broadcasts all the packets to its ports, if one of them doesn't support netpoll, how could it work?
Quoted 6 lines
Quoted 3 lines
You should stop netpoll before adding it.
How to do that? What disadvantage does this have?
If you are using a redhat distro, run service netconsole stop.
Or you can disable it via configfs, checkDocumentation/networking/netconsole.txt.
Quoted 30 lines
Am 16.06.2014 um 20:51 schrieb Cong Wang <[email protected]>:
Quoted 25 lines · Stefan Priebe - Profihost AG
Quoted 24 lines
Am 16.06.2014 um 20:05 schrieb Cong Wang <[email protected]>:
Quoted 9 lines · Stefan Priebe - Profihost AG
Hi,
i'm using a vanilla 3.10.43 kernel and netconsole on top of a bridge.
netconsole is used with vmbr0 (bridge) which is on top of bond0.
If i want to add another bridge to vmbr0 is fails as long as netconsole is in use.
Quoted 7 lines
# brctl addif vmbr0 fwpr2004p0 can't add fwpr2004p0 to bridge vmbr0: Unknown error 524Kernel output:
netpoll: (null): fwpr2004p0 doesn't support polling, abortingIf i do rmmod netconsole - everything is working fine again.
This is expected, you can't add an interface which doesn't support netpoll to a bridge which is running netpoll.
Quoted 6 lines
Quoted 1 line
Thanks, so i can't use netconsole at a bridge used for vms?
You can, but you need to make sure all the devices under this bridge support netpoll. Not considering mac learning, bridge just broadcasts all the packets to its ports, if one of them doesn't support netpoll, how could it work?
Ok i was trying to add a veth device so this is the problematic device.
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
You should stop netpoll before adding it.
How to do that? What disadvantage does this have?
If you are using a redhat distro, run
service netconsole stop.Or you can disable it via configfs, check
Documentation/networking/netconsole.txt.
Ok but this means disabling netconsole nothing I want.
Stefan
Quoted 30 lines · Stefan Priebe - Profihost AG
Quoted 30 lines
Am 16.06.2014 um 20:51 schrieb Cong Wang <[email protected]>:
Quoted 25 lines · Stefan Priebe - Profihost AG
Quoted 24 lines
Am 16.06.2014 um 20:05 schrieb Cong Wang <[email protected]>:
Quoted 9 lines · Stefan Priebe - Profihost AG
Hi,
i'm using a vanilla 3.10.43 kernel and netconsole on top of a bridge.
netconsole is used with vmbr0 (bridge) which is on top of bond0.
If i want to add another bridge to vmbr0 is fails as long as netconsole is in use.
Quoted 7 lines
# brctl addif vmbr0 fwpr2004p0 can't add fwpr2004p0 to bridge vmbr0: Unknown error 524Kernel output:
netpoll: (null): fwpr2004p0 doesn't support polling, abortingIf i do rmmod netconsole - everything is working fine again.
This is expected, you can't add an interface which doesn't support netpoll to a bridge which is running netpoll.
Quoted 9 lines
Quoted 6 lines
Quoted 1 line
Thanks, so i can't use netconsole at a bridge used for vms?
You can, but you need to make sure all the devices under this bridge support netpoll. Not considering mac learning, bridge just broadcasts all the packets to its ports, if one of them doesn't support netpoll, how could it work?
Ok i was trying to add a veth device so this is the problematic device.
We can just add netpoll support to veth device, it should not be hard. I will work on it once net-next is open.
Thanks.
Quoted 42 lines
Am 16.06.2014 um 21:12 schrieb Cong Wang <[email protected]>:
Quoted 37 lines · Stefan Priebe - Profihost AG
Quoted 36 lines
Am 16.06.2014 um 20:51 schrieb Cong Wang <[email protected]>:
Quoted 20 lines · Stefan Priebe - Profihost AG
Quoted 20 lines
Am 16.06.2014 um 20:05 schrieb Cong Wang <[email protected]>:
Quoted 15 lines · Stefan Priebe - Profihost AG
Hi,
i'm using a vanilla 3.10.43 kernel and netconsole on top of a bridge.
netconsole is used with vmbr0 (bridge) which is on top of bond0.
If i want to add another bridge to vmbr0 is fails as long as netconsole is in use.
# brctl addif vmbr0 fwpr2004p0 can't add fwpr2004p0 to bridge vmbr0: Unknown error 524Kernel output:
netpoll: (null): fwpr2004p0 doesn't support polling, abortingQuoted 6 lines
Quoted 4 lines
Quoted 1 line
If i do rmmod netconsole - everything is working fine again.
This is expected, you can't add an interface which doesn't support netpoll to a bridge which is running netpoll.
Thanks, so i can't use netconsole at a bridge used for vms?
You can, but you need to make sure all the devices under this bridge support netpoll. Not considering mac learning, bridge just broadcasts all the packets to its ports, if one of them doesn't support netpoll, how could it work?
Quoted 4 lines
Quoted 1 line
Ok i was trying to add a veth device so this is the problematic device.
We can just add netpoll support to veth device, it should not be hard. I will work on it once net-next is open.
That sounds great! Is there anything I can do or some code I can port to veth?
Greets,
Stefan
Stefan Priebe - Profihost AG <[email protected]> :
[...]
Quoted 1 line
That sounds great! Is there anything I can do or some code I can port to veth?
You may add an empty handler for .ndo_poll_controller in drivers/net/veth.c and give it a try on current kernel.
It should not be too bad.
Signature · 1 line
Ueimor
Am 16.06.2014 23:30, schrieb Francois Romieu:
Quoted 9 lines
Stefan Priebe - Profihost AG <[email protected]> :
[...]Quoted 1 line
That sounds great! Is there anything I can do or some code I can port to veth?
You may add an empty handler for .ndo_poll_controller in
drivers/net/veth.cand give it a try on current kernel.It should not be too bad.
Why is an empty poll controller enough to fix it? This sounds a bit crazy to me.
Greets,
Stefan
Quoted 17 lines · Cong Wang
Quoted 15 lines · Stefan Priebe - Profihost AG
Hi,
i'm using a vanilla 3.10.43 kernel and netconsole on top of a bridge.
netconsole is used with vmbr0 (bridge) which is on top of bond0.
If i want to add another bridge to vmbr0 is fails as long as netconsole is in use.
# brctl addif vmbr0 fwpr2004p0 can't add fwpr2004p0 to bridge vmbr0: Unknown error 524Kernel output:
netpoll: (null): fwpr2004p0 doesn't support polling, aborting
Quoted 7 lines
Quoted 2 lines
If i do rmmod netconsole - everything is working fine again.
This is expected, you can't add an interface which doesn't support netpoll to a bridge which is running netpoll.
You should stop netpoll before adding it.
Or alternatively, update the driver for the fwpr2004p0 to support netpoll, and you'll be able to add it with netpoll running
Neil
Quoted 5 lines
--
To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 5 lines · Stefan Priebe - Profihost AG
Am 16.06.2014 23:30, schrieb Francois Romieu:
Quoted 4 lines
Stefan Priebe - Profihost AG <[email protected]> :
[...]Quoted 1 line
That sounds great! Is there anything I can do or some code I can port to veth?
Quoted 8 lines
Quoted 5 lines
You may add an empty handler for .ndo_poll_controller in
drivers/net/veth.cand give it a try on current kernel.It should not be too bad.
Why is an empty poll controller enough to fix it? This sounds a bit crazy to me.
Because the presence of a non-null poll_controller method is how we determine if a device supports netpoll. Most devices require a ndo_poll_controller function to simulate an interrupt for receiving packets, but virtual devices really don't, so an empty function sufficies to get the device recognized as having netpoll support. See tun_poll_controller as an example
Neil
Quoted 8 lines
Greets,
Stefan
--
To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html