Skip to content

Commit c9e2105

Browse files
Arkadi Sharshevskydavem330
authored andcommitted
net: dsa: Add support for querying supported bridge flags
The DSA drivers do not support bridge flags offload. Yet, this attribute should be added in order for the bridge to fail when one tries set a flag on the port, as explained in commit dc0ecab ("net: switchdev: Add support for querying supported bridge flags by hardware"). Signed-off-by: Arkadi Sharshevsky <[email protected]> Reviewed-by: Vivien Didelot <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 37b8da1 commit c9e2105

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

net/dsa/slave.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,9 @@ static int dsa_slave_port_attr_get(struct net_device *dev,
324324
attr->u.ppid.id_len = sizeof(ds->index);
325325
memcpy(&attr->u.ppid.id, &ds->index, attr->u.ppid.id_len);
326326
break;
327+
case SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS_SUPPORT:
328+
attr->u.brport_flags_support = 0;
329+
break;
327330
default:
328331
return -EOPNOTSUPP;
329332
}

0 commit comments

Comments
 (0)