Lines Matching defs:port

27 #include "port.h"
99 "port %d failed to add %pM vid %d to fdb: %d\n",
109 "port %d failed to delete %pM vid %d from fdb: %d\n",
121 "port %d failed to add %pM vid %d to mdb: %d\n",
133 "port %d failed to delete %pM vid %d from mdb: %d\n",
460 /* If the port is down, the address isn't synced yet to hardware or
571 int port = p->dp->index;
577 return ds->ops->port_hwtstamp_get(ds, port, ifr);
581 return ds->ops->port_hwtstamp_set(ds, port, ifr);
712 * installing it as a VLAN towards the CPU port.
1465 "Only one port policer allowed");
1564 int port = dp->index;
1569 return ds->ops->cls_flower_add(ds, port, cls, ingress);
1578 int port = dp->index;
1583 return ds->ops->cls_flower_del(ds, port, cls, ingress);
1592 int port = dp->index;
1597 return ds->ops->cls_flower_stats(ds, port, cls, ingress);
1688 static int dsa_slave_setup_ft_block(struct dsa_switch *ds, int port,
1691 struct net_device *master = dsa_port_to_master(dsa_to_port(ds, port));
1772 /* User port... */
1780 /* And CPU port... */
1784 netdev_err(dev, "CPU port %d: %s\n", dp->cpu_dp->index,
1912 * To summarize, a DSA switch port offloads:
1920 * global, or it is, but no port is under a VLAN-aware bridge):
2019 * as the newly added/modified port
2127 /* We only need to propagate the MTU of the CPU port to
2161 int err, port = dp->index;
2173 err = ds->ops->port_set_default_prio(ds, port, new_prio);
2188 int err, port = dp->index;
2207 err = ds->ops->port_add_dscp_prio(ds, port, dscp, new_prio);
2241 int err, port = dp->index;
2253 err = ds->ops->port_set_default_prio(ds, port, new_prio);
2267 int err, port = dp->index;
2277 err = ds->ops->port_del_dscp_prio(ds, port, dscp, app->priority);
2312 int port = dp->index;
2316 int prio = ds->ops->port_get_default_prio(ds, port);
2341 prio = ds->ops->port_get_dscp_prio(ds, port, protocol);
2419 path->dsa.port = dp->index;
2452 void dsa_port_phylink_mac_change(struct dsa_switch *ds, int port, bool up)
2454 const struct dsa_port *dp = dsa_to_port(ds, port);
2594 int dsa_slave_create(struct dsa_port *port)
2596 struct net_device *master = dsa_port_to_master(port);
2597 struct dsa_switch *ds = port->ds;
2607 if (port->name) {
2608 name = port->name;
2626 if (!is_zero_ether_addr(port->mac))
2627 eth_hw_addr_set(slave_dev, port->mac);
2635 slave_dev->max_mtu = ds->ops->port_max_mtu(ds, port->index);
2638 SET_NETDEV_DEV(slave_dev, port->ds->dev);
2639 SET_NETDEV_DEVLINK_PORT(slave_dev, &port->devlink_port);
2640 slave_dev->dev.of_node = port->dn;
2654 p->dp = port;
2656 port->slave = slave_dev;
2664 "error %d setting up PHY for tree %d, switch %d, port %d\n",
2665 ret, ds->dst->index, ds->index, port->index);
2673 dev_warn(ds->dev, "nonfatal error %d setting MTU to %d on port %d\n",
2674 ret, ETH_DATA_LEN, port->index);
2716 port->slave = NULL;
2774 * DSA master when the user port opens => we need to ensure that the
2793 /* Update the MTU of the new CPU port through cross-chip notifiers */
2801 /* If the port doesn't have its own MAC address and relies on the DSA
3159 * port, and is bridged only with other ports from the same hardware device.
3272 /* Update the CPU port of the user ports still under the LAG
3279 /* Update the index of the virtual CPU port to match the lowest
3280 * physical CPU port
3286 * user ports to the first physical CPU port
3292 * the CPU port leave the hardware LAG as well
3386 /* Mirror LAG port events on DSA masters that are in
3399 /* Track state of master port.
3400 * DSA driver may require the master port (and indirectly
3407 /* Track when the master port is UP */
3411 /* Track when the master port is ready and can accept
3413 * NETDEV_UP event is not enough to flag a port as ready.
3416 * We check if a master port is ready by checking if the dev
3497 "port %d failed to add %pM vid %d to fdb: %d\n",
3513 "port %d failed to delete %pM vid %d from fdb: %d\n",
3575 * since the CPU port isn't in a LAG.