Re: [PATCH net-next 1/6] net: dsa: Fix SWITCHDEV_ATTR_ID_PORT_PARENT_ID

2017-09-27 Thread Vivien Didelot
Hi Andrew, Andrew Lunn writes: > @@ -354,13 +354,16 @@ static int dsa_slave_port_attr_get(struct net_device > *dev, > struct switchdev_attr *attr) > { > struct dsa_slave_priv *p = netdev_priv(dev); > - struct dsa_switch *ds = p->dp->ds; > > sw

Re: [PATCH net-next 1/6] net: dsa: Fix SWITCHDEV_ATTR_ID_PORT_PARENT_ID

2017-09-27 Thread Sergei Shtylyov
Hello! On 9/27/2017 1:25 AM, Andrew Lunn wrote: SWITCHDEV_ATTR_ID_PORT_PARENT_ID is used by the software bridge when determining which ports to flood a packet out. If the packet originated from a switch, it assumes the switch has already flooded the packet out the switches ports, so the bridge

[PATCH net-next 1/6] net: dsa: Fix SWITCHDEV_ATTR_ID_PORT_PARENT_ID

2017-09-26 Thread Andrew Lunn
SWITCHDEV_ATTR_ID_PORT_PARENT_ID is used by the software bridge when determining which ports to flood a packet out. If the packet originated from a switch, it assumes the switch has already flooded the packet out the switches ports, so the bridge should not flood the packet itself out switch ports.