netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Errors enabling bridge with KSZ9897 DSA switch driver
@ 2018-12-23  2:29 Robert Hancock
  2018-12-23  4:47 ` Robert Hancock
  2018-12-23 11:23 ` Andrew Lunn
  0 siblings, 2 replies; 7+ messages in thread
From: Robert Hancock @ 2018-12-23  2:29 UTC (permalink / raw)
  To: netdev

I have a device using a KSZ9897 switch
(CONFIG_MICROCHIP_KSZ_SPI_DRIVER=y) using a 4.19.9 kernel, where I am
trying to enable a bridge on some of the ports using systemd-networkd.
However, it seems to be getting an error when it tries to configure the
ports to be part of the bridge. systemd-networkd complains with:

lan1: Set link
lan1: Could not join netdev: Operation not supported
lan1: Failed

and the kernel complains:

lan: bridge flag offload is not supported 4(lan1)

That message is coming from br_switchdev_set_port_flag in
net/bridge/br_switchdev.c. Adding some more output to that statement
tells me:

lan: bridge flag offload is not supported, flags 18656 mask 64 support
0, 4(lan1)

which appears to mean something is trying to enable BR_BCAST_FLOOD,
BR_MCAST_FLOOD, BR_PROMISC, BR_FLOOD, BR_LEARNING on the port, but it is
failing to enable BR_FLOOD because brport_flags_support is 0. I am just
using the default bridge settings in systemd-networkd, so that is
nothing that I am specifying explicitly.

However, if I look at brctl, it appears that the devices have in fact
been added to the bridge, but obviously systemd-networkd still treats
this as a failure.

I'm not sure what that means.. is this a kernel problem?
systemd-networkd problem? Are we somehow trying to do something
unsupported on this hardware? Any advice would be appreciated.

-- 
Robert Hancock
Senior Software Developer
SED Systems
Email: hancock@sedsystems.ca

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-12-28  8:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-23  2:29 Errors enabling bridge with KSZ9897 DSA switch driver Robert Hancock
2018-12-23  4:47 ` Robert Hancock
2018-12-23 11:23 ` Andrew Lunn
2018-12-23 19:29   ` Robert Hancock
2018-12-23 20:57     ` Andrew Lunn
2018-12-27 23:32       ` Robert Hancock
2018-12-28  8:48         ` Andrew Lunn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).