Lines Matching refs:port
17 #include "port.h"
128 /* Matches for all upstream-facing ports (the CPU port and all upstream-facing
129 * DSA links) that sit between the targeted port on which the notifier was
130 * emitted and its dedicated CPU port.
164 int port = dp->index;
169 err = ds->ops->port_mdb_add(ds, port, mdb, db);
191 err = ds->ops->port_mdb_add(ds, port, mdb, db);
216 int port = dp->index;
221 err = ds->ops->port_mdb_del(ds, port, mdb, db);
242 err = ds->ops->port_mdb_del(ds, port, mdb, db);
263 int port = dp->index;
268 err = ds->ops->port_fdb_add(ds, port, addr, vid, db);
289 err = ds->ops->port_fdb_add(ds, port, addr, vid, db);
313 int port = dp->index;
318 err = ds->ops->port_fdb_del(ds, port, addr, vid, db);
338 err = ds->ops->port_fdb_del(ds, port, addr, vid, db);
493 int port = dsa_towards_port(ds, info->dp->ds->index, info->dp->index);
494 struct dsa_port *dp = dsa_to_port(ds, port);
505 int port = dsa_towards_port(ds, info->dp->ds->index, info->dp->index);
506 struct dsa_port *dp = dsa_to_port(ds, port);
522 /* Notify switch only if it has a port in this LAG */
540 /* Notify switch only if it has a port in this LAG */
594 int port = dsa_towards_port(ds, info->dp->ds->index, info->dp->index);
595 struct dsa_port *dp = dsa_to_port(ds, port);
606 int port = dsa_towards_port(ds, info->dp->ds->index, info->dp->index);
607 struct dsa_port *dp = dsa_to_port(ds, port);
655 /* Port VLANs match on the targeted port and on all DSA ports */
662 /* Host VLANs match on the targeted port's CPU port, and on all DSA ports
693 int port = dp->index;
699 err = ds->ops->port_vlan_add(ds, port, vlan, extack);
728 err = ds->ops->port_vlan_add(ds, port, vlan, extack);
749 int port = dp->index;
755 err = ds->ops->port_vlan_del(ds, port, vlan);
775 err = ds->ops->port_vlan_del(ds, port, vlan);