|
|
|
@ -2582,10 +2582,6 @@ static int mv88e6xxx_setup_port(struct mv88e6xxx_chip *chip, int port)
|
|
|
|
|
mv88e6xxx_6185_family(chip))
|
|
|
|
|
reg = PORT_CONTROL_2_MAP_DA;
|
|
|
|
|
|
|
|
|
|
if (mv88e6xxx_6352_family(chip) || mv88e6xxx_6351_family(chip) ||
|
|
|
|
|
mv88e6xxx_6165_family(chip) || mv88e6xxx_6320_family(chip))
|
|
|
|
|
reg |= PORT_CONTROL_2_JUMBO_10240;
|
|
|
|
|
|
|
|
|
|
if (mv88e6xxx_6095_family(chip) || mv88e6xxx_6185_family(chip)) {
|
|
|
|
|
/* Set the upstream port this port should use */
|
|
|
|
|
reg |= dsa_upstream_port(ds);
|
|
|
|
@ -2604,6 +2600,12 @@ static int mv88e6xxx_setup_port(struct mv88e6xxx_chip *chip, int port)
|
|
|
|
|
return err;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (chip->info->ops->port_jumbo_config) {
|
|
|
|
|
err = chip->info->ops->port_jumbo_config(chip, port);
|
|
|
|
|
if (err)
|
|
|
|
|
return err;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Port Association Vector: when learning source addresses
|
|
|
|
|
* of packets, add the address to the address database using
|
|
|
|
|
* a port bitmap that has only the bit for this port set and
|
|
|
|
@ -2623,17 +2625,15 @@ static int mv88e6xxx_setup_port(struct mv88e6xxx_chip *chip, int port)
|
|
|
|
|
if (err)
|
|
|
|
|
return err;
|
|
|
|
|
|
|
|
|
|
if (chip->info->ops->port_pause_config) {
|
|
|
|
|
err = chip->info->ops->port_pause_config(chip, port);
|
|
|
|
|
if (err)
|
|
|
|
|
return err;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (mv88e6xxx_6352_family(chip) || mv88e6xxx_6351_family(chip) ||
|
|
|
|
|
mv88e6xxx_6165_family(chip) || mv88e6xxx_6097_family(chip) ||
|
|
|
|
|
mv88e6xxx_6320_family(chip)) {
|
|
|
|
|
/* Do not limit the period of time that this port can
|
|
|
|
|
* be paused for by the remote end or the period of
|
|
|
|
|
* time that this port can pause the remote end.
|
|
|
|
|
*/
|
|
|
|
|
err = mv88e6xxx_port_write(chip, port, PORT_PAUSE_CTRL, 0x0000);
|
|
|
|
|
if (err)
|
|
|
|
|
return err;
|
|
|
|
|
|
|
|
|
|
/* Port ATU control: disable limiting the number of
|
|
|
|
|
* address database entries that this port is allowed
|
|
|
|
|
* to use.
|
|
|
|
@ -2655,17 +2655,8 @@ static int mv88e6xxx_setup_port(struct mv88e6xxx_chip *chip, int port)
|
|
|
|
|
return err;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Rate Control: disable ingress rate limiting. */
|
|
|
|
|
if (mv88e6xxx_6352_family(chip) || mv88e6xxx_6351_family(chip) ||
|
|
|
|
|
mv88e6xxx_6165_family(chip) || mv88e6xxx_6097_family(chip) ||
|
|
|
|
|
mv88e6xxx_6320_family(chip)) {
|
|
|
|
|
err = mv88e6xxx_port_write(chip, port, PORT_RATE_CONTROL,
|
|
|
|
|
0x0001);
|
|
|
|
|
if (err)
|
|
|
|
|
return err;
|
|
|
|
|
} else if (mv88e6xxx_6185_family(chip) || mv88e6xxx_6095_family(chip)) {
|
|
|
|
|
err = mv88e6xxx_port_write(chip, port, PORT_RATE_CONTROL,
|
|
|
|
|
0x0000);
|
|
|
|
|
if (chip->info->ops->port_egress_rate_limiting) {
|
|
|
|
|
err = chip->info->ops->port_egress_rate_limiting(chip, port);
|
|
|
|
|
if (err)
|
|
|
|
|
return err;
|
|
|
|
|
}
|
|
|
|
@ -2899,6 +2890,17 @@ static int mv88e6xxx_setup(struct dsa_switch *ds)
|
|
|
|
|
goto unlock;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Some generations have the configuration of sending reserved
|
|
|
|
|
* management frames to the CPU in global2, others in
|
|
|
|
|
* global1. Hence it does not fit the two setup functions
|
|
|
|
|
* above.
|
|
|
|
|
*/
|
|
|
|
|
if (chip->info->ops->mgmt_rsvd2cpu) {
|
|
|
|
|
err = chip->info->ops->mgmt_rsvd2cpu(chip);
|
|
|
|
|
if (err)
|
|
|
|
|
goto unlock;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
unlock:
|
|
|
|
|
mutex_unlock(&chip->reg_lock);
|
|
|
|
|
|
|
|
|
@ -3215,12 +3217,15 @@ static const struct mv88e6xxx_ops mv88e6085_ops = {
|
|
|
|
|
.port_set_frame_mode = mv88e6351_port_set_frame_mode,
|
|
|
|
|
.port_set_egress_unknowns = mv88e6351_port_set_egress_unknowns,
|
|
|
|
|
.port_set_ether_type = mv88e6351_port_set_ether_type,
|
|
|
|
|
.port_egress_rate_limiting = mv88e6097_port_egress_rate_limiting,
|
|
|
|
|
.port_pause_config = mv88e6097_port_pause_config,
|
|
|
|
|
.stats_snapshot = mv88e6xxx_g1_stats_snapshot,
|
|
|
|
|
.stats_get_sset_count = mv88e6095_stats_get_sset_count,
|
|
|
|
|
.stats_get_strings = mv88e6095_stats_get_strings,
|
|
|
|
|
.stats_get_stats = mv88e6095_stats_get_stats,
|
|
|
|
|
.g1_set_cpu_port = mv88e6095_g1_set_cpu_port,
|
|
|
|
|
.g1_set_egress_port = mv88e6095_g1_set_egress_port,
|
|
|
|
|
.mgmt_rsvd2cpu = mv88e6095_g2_mgmt_rsvd2cpu,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const struct mv88e6xxx_ops mv88e6095_ops = {
|
|
|
|
@ -3237,6 +3242,7 @@ static const struct mv88e6xxx_ops mv88e6095_ops = {
|
|
|
|
|
.stats_get_sset_count = mv88e6095_stats_get_sset_count,
|
|
|
|
|
.stats_get_strings = mv88e6095_stats_get_strings,
|
|
|
|
|
.stats_get_stats = mv88e6095_stats_get_stats,
|
|
|
|
|
.mgmt_rsvd2cpu = mv88e6095_g2_mgmt_rsvd2cpu,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const struct mv88e6xxx_ops mv88e6097_ops = {
|
|
|
|
@ -3251,12 +3257,16 @@ static const struct mv88e6xxx_ops mv88e6097_ops = {
|
|
|
|
|
.port_set_frame_mode = mv88e6351_port_set_frame_mode,
|
|
|
|
|
.port_set_egress_unknowns = mv88e6351_port_set_egress_unknowns,
|
|
|
|
|
.port_set_ether_type = mv88e6351_port_set_ether_type,
|
|
|
|
|
.port_jumbo_config = mv88e6165_port_jumbo_config,
|
|
|
|
|
.port_egress_rate_limiting = mv88e6095_port_egress_rate_limiting,
|
|
|
|
|
.port_pause_config = mv88e6097_port_pause_config,
|
|
|
|
|
.stats_snapshot = mv88e6xxx_g1_stats_snapshot,
|
|
|
|
|
.stats_get_sset_count = mv88e6095_stats_get_sset_count,
|
|
|
|
|
.stats_get_strings = mv88e6095_stats_get_strings,
|
|
|
|
|
.stats_get_stats = mv88e6095_stats_get_stats,
|
|
|
|
|
.g1_set_cpu_port = mv88e6095_g1_set_cpu_port,
|
|
|
|
|
.g1_set_egress_port = mv88e6095_g1_set_egress_port,
|
|
|
|
|
.mgmt_rsvd2cpu = mv88e6095_g2_mgmt_rsvd2cpu,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const struct mv88e6xxx_ops mv88e6123_ops = {
|
|
|
|
@ -3275,6 +3285,7 @@ static const struct mv88e6xxx_ops mv88e6123_ops = {
|
|
|
|
|
.stats_get_stats = mv88e6095_stats_get_stats,
|
|
|
|
|
.g1_set_cpu_port = mv88e6095_g1_set_cpu_port,
|
|
|
|
|
.g1_set_egress_port = mv88e6095_g1_set_egress_port,
|
|
|
|
|
.mgmt_rsvd2cpu = mv88e6095_g2_mgmt_rsvd2cpu,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const struct mv88e6xxx_ops mv88e6131_ops = {
|
|
|
|
@ -3289,12 +3300,16 @@ static const struct mv88e6xxx_ops mv88e6131_ops = {
|
|
|
|
|
.port_set_frame_mode = mv88e6351_port_set_frame_mode,
|
|
|
|
|
.port_set_egress_unknowns = mv88e6351_port_set_egress_unknowns,
|
|
|
|
|
.port_set_ether_type = mv88e6351_port_set_ether_type,
|
|
|
|
|
.port_jumbo_config = mv88e6165_port_jumbo_config,
|
|
|
|
|
.port_egress_rate_limiting = mv88e6097_port_egress_rate_limiting,
|
|
|
|
|
.port_pause_config = mv88e6097_port_pause_config,
|
|
|
|
|
.stats_snapshot = mv88e6xxx_g1_stats_snapshot,
|
|
|
|
|
.stats_get_sset_count = mv88e6095_stats_get_sset_count,
|
|
|
|
|
.stats_get_strings = mv88e6095_stats_get_strings,
|
|
|
|
|
.stats_get_stats = mv88e6095_stats_get_stats,
|
|
|
|
|
.g1_set_cpu_port = mv88e6095_g1_set_cpu_port,
|
|
|
|
|
.g1_set_egress_port = mv88e6095_g1_set_egress_port,
|
|
|
|
|
.mgmt_rsvd2cpu = mv88e6095_g2_mgmt_rsvd2cpu,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const struct mv88e6xxx_ops mv88e6161_ops = {
|
|
|
|
@ -3309,12 +3324,16 @@ static const struct mv88e6xxx_ops mv88e6161_ops = {
|
|
|
|
|
.port_set_frame_mode = mv88e6351_port_set_frame_mode,
|
|
|
|
|
.port_set_egress_unknowns = mv88e6351_port_set_egress_unknowns,
|
|
|
|
|
.port_set_ether_type = mv88e6351_port_set_ether_type,
|
|
|
|
|
.port_jumbo_config = mv88e6165_port_jumbo_config,
|
|
|
|
|
.port_egress_rate_limiting = mv88e6097_port_egress_rate_limiting,
|
|
|
|
|
.port_pause_config = mv88e6097_port_pause_config,
|
|
|
|
|
.stats_snapshot = mv88e6xxx_g1_stats_snapshot,
|
|
|
|
|
.stats_get_sset_count = mv88e6095_stats_get_sset_count,
|
|
|
|
|
.stats_get_strings = mv88e6095_stats_get_strings,
|
|
|
|
|
.stats_get_stats = mv88e6095_stats_get_stats,
|
|
|
|
|
.g1_set_cpu_port = mv88e6095_g1_set_cpu_port,
|
|
|
|
|
.g1_set_egress_port = mv88e6095_g1_set_egress_port,
|
|
|
|
|
.mgmt_rsvd2cpu = mv88e6095_g2_mgmt_rsvd2cpu,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const struct mv88e6xxx_ops mv88e6165_ops = {
|
|
|
|
@ -3331,6 +3350,7 @@ static const struct mv88e6xxx_ops mv88e6165_ops = {
|
|
|
|
|
.stats_get_stats = mv88e6095_stats_get_stats,
|
|
|
|
|
.g1_set_cpu_port = mv88e6095_g1_set_cpu_port,
|
|
|
|
|
.g1_set_egress_port = mv88e6095_g1_set_egress_port,
|
|
|
|
|
.mgmt_rsvd2cpu = mv88e6095_g2_mgmt_rsvd2cpu,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const struct mv88e6xxx_ops mv88e6171_ops = {
|
|
|
|
@ -3346,12 +3366,16 @@ static const struct mv88e6xxx_ops mv88e6171_ops = {
|
|
|
|
|
.port_set_frame_mode = mv88e6351_port_set_frame_mode,
|
|
|
|
|
.port_set_egress_unknowns = mv88e6351_port_set_egress_unknowns,
|
|
|
|
|
.port_set_ether_type = mv88e6351_port_set_ether_type,
|
|
|
|
|
.port_jumbo_config = mv88e6165_port_jumbo_config,
|
|
|
|
|
.port_egress_rate_limiting = mv88e6097_port_egress_rate_limiting,
|
|
|
|
|
.port_pause_config = mv88e6097_port_pause_config,
|
|
|
|
|
.stats_snapshot = mv88e6320_g1_stats_snapshot,
|
|
|
|
|
.stats_get_sset_count = mv88e6095_stats_get_sset_count,
|
|
|
|
|
.stats_get_strings = mv88e6095_stats_get_strings,
|
|
|
|
|
.stats_get_stats = mv88e6095_stats_get_stats,
|
|
|
|
|
.g1_set_cpu_port = mv88e6095_g1_set_cpu_port,
|
|
|
|
|
.g1_set_egress_port = mv88e6095_g1_set_egress_port,
|
|
|
|
|
.mgmt_rsvd2cpu = mv88e6095_g2_mgmt_rsvd2cpu,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const struct mv88e6xxx_ops mv88e6172_ops = {
|
|
|
|
@ -3369,12 +3393,16 @@ static const struct mv88e6xxx_ops mv88e6172_ops = {
|
|
|
|
|
.port_set_frame_mode = mv88e6351_port_set_frame_mode,
|
|
|
|
|
.port_set_egress_unknowns = mv88e6351_port_set_egress_unknowns,
|
|
|
|
|
.port_set_ether_type = mv88e6351_port_set_ether_type,
|
|
|
|
|
.port_jumbo_config = mv88e6165_port_jumbo_config,
|
|
|
|
|
.port_egress_rate_limiting = mv88e6097_port_egress_rate_limiting,
|
|
|
|
|
.port_pause_config = mv88e6097_port_pause_config,
|
|
|
|
|
.stats_snapshot = mv88e6320_g1_stats_snapshot,
|
|
|
|
|
.stats_get_sset_count = mv88e6095_stats_get_sset_count,
|
|
|
|
|
.stats_get_strings = mv88e6095_stats_get_strings,
|
|
|
|
|
.stats_get_stats = mv88e6095_stats_get_stats,
|
|
|
|
|
.g1_set_cpu_port = mv88e6095_g1_set_cpu_port,
|
|
|
|
|
.g1_set_egress_port = mv88e6095_g1_set_egress_port,
|
|
|
|
|
.mgmt_rsvd2cpu = mv88e6095_g2_mgmt_rsvd2cpu,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const struct mv88e6xxx_ops mv88e6175_ops = {
|
|
|
|
@ -3390,12 +3418,16 @@ static const struct mv88e6xxx_ops mv88e6175_ops = {
|
|
|
|
|
.port_set_frame_mode = mv88e6351_port_set_frame_mode,
|
|
|
|
|
.port_set_egress_unknowns = mv88e6351_port_set_egress_unknowns,
|
|
|
|
|
.port_set_ether_type = mv88e6351_port_set_ether_type,
|
|
|
|
|
.port_jumbo_config = mv88e6165_port_jumbo_config,
|
|
|
|
|
.port_egress_rate_limiting = mv88e6097_port_egress_rate_limiting,
|
|
|
|
|
.port_pause_config = mv88e6097_port_pause_config,
|
|
|
|
|
.stats_snapshot = mv88e6320_g1_stats_snapshot,
|
|
|
|
|
.stats_get_sset_count = mv88e6095_stats_get_sset_count,
|
|
|
|
|
.stats_get_strings = mv88e6095_stats_get_strings,
|
|
|
|
|
.stats_get_stats = mv88e6095_stats_get_stats,
|
|
|
|
|
.g1_set_cpu_port = mv88e6095_g1_set_cpu_port,
|
|
|
|
|
.g1_set_egress_port = mv88e6095_g1_set_egress_port,
|
|
|
|
|
.mgmt_rsvd2cpu = mv88e6095_g2_mgmt_rsvd2cpu,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const struct mv88e6xxx_ops mv88e6176_ops = {
|
|
|
|
@ -3413,12 +3445,16 @@ static const struct mv88e6xxx_ops mv88e6176_ops = {
|
|
|
|
|
.port_set_frame_mode = mv88e6351_port_set_frame_mode,
|
|
|
|
|
.port_set_egress_unknowns = mv88e6351_port_set_egress_unknowns,
|
|
|
|
|
.port_set_ether_type = mv88e6351_port_set_ether_type,
|
|
|
|
|
.port_jumbo_config = mv88e6165_port_jumbo_config,
|
|
|
|
|
.port_egress_rate_limiting = mv88e6097_port_egress_rate_limiting,
|
|
|
|
|
.port_pause_config = mv88e6097_port_pause_config,
|
|
|
|
|
.stats_snapshot = mv88e6320_g1_stats_snapshot,
|
|
|
|
|
.stats_get_sset_count = mv88e6095_stats_get_sset_count,
|
|
|
|
|
.stats_get_strings = mv88e6095_stats_get_strings,
|
|
|
|
|
.stats_get_stats = mv88e6095_stats_get_stats,
|
|
|
|
|
.g1_set_cpu_port = mv88e6095_g1_set_cpu_port,
|
|
|
|
|
.g1_set_egress_port = mv88e6095_g1_set_egress_port,
|
|
|
|
|
.mgmt_rsvd2cpu = mv88e6095_g2_mgmt_rsvd2cpu,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const struct mv88e6xxx_ops mv88e6185_ops = {
|
|
|
|
@ -3431,12 +3467,14 @@ static const struct mv88e6xxx_ops mv88e6185_ops = {
|
|
|
|
|
.port_set_speed = mv88e6185_port_set_speed,
|
|
|
|
|
.port_set_frame_mode = mv88e6085_port_set_frame_mode,
|
|
|
|
|
.port_set_egress_unknowns = mv88e6085_port_set_egress_unknowns,
|
|
|
|
|
.port_egress_rate_limiting = mv88e6095_port_egress_rate_limiting,
|
|
|
|
|
.stats_snapshot = mv88e6xxx_g1_stats_snapshot,
|
|
|
|
|
.stats_get_sset_count = mv88e6095_stats_get_sset_count,
|
|
|
|
|
.stats_get_strings = mv88e6095_stats_get_strings,
|
|
|
|
|
.stats_get_stats = mv88e6095_stats_get_stats,
|
|
|
|
|
.g1_set_cpu_port = mv88e6095_g1_set_cpu_port,
|
|
|
|
|
.g1_set_egress_port = mv88e6095_g1_set_egress_port,
|
|
|
|
|
.mgmt_rsvd2cpu = mv88e6095_g2_mgmt_rsvd2cpu,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const struct mv88e6xxx_ops mv88e6190_ops = {
|
|
|
|
@ -3452,6 +3490,7 @@ static const struct mv88e6xxx_ops mv88e6190_ops = {
|
|
|
|
|
.port_set_frame_mode = mv88e6351_port_set_frame_mode,
|
|
|
|
|
.port_set_egress_unknowns = mv88e6351_port_set_egress_unknowns,
|
|
|
|
|
.port_set_ether_type = mv88e6351_port_set_ether_type,
|
|
|
|
|
.port_pause_config = mv88e6390_port_pause_config,
|
|
|
|
|
.stats_snapshot = mv88e6390_g1_stats_snapshot,
|
|
|
|
|
.stats_set_histogram = mv88e6390_g1_stats_set_histogram,
|
|
|
|
|
.stats_get_sset_count = mv88e6320_stats_get_sset_count,
|
|
|
|
@ -3459,6 +3498,7 @@ static const struct mv88e6xxx_ops mv88e6190_ops = {
|
|
|
|
|
.stats_get_stats = mv88e6390_stats_get_stats,
|
|
|
|
|
.g1_set_cpu_port = mv88e6390_g1_set_cpu_port,
|
|
|
|
|
.g1_set_egress_port = mv88e6390_g1_set_egress_port,
|
|
|
|
|
.mgmt_rsvd2cpu = mv88e6390_g1_mgmt_rsvd2cpu,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const struct mv88e6xxx_ops mv88e6190x_ops = {
|
|
|
|
@ -3474,6 +3514,7 @@ static const struct mv88e6xxx_ops mv88e6190x_ops = {
|
|
|
|
|
.port_set_frame_mode = mv88e6351_port_set_frame_mode,
|
|
|
|
|
.port_set_egress_unknowns = mv88e6351_port_set_egress_unknowns,
|
|
|
|
|
.port_set_ether_type = mv88e6351_port_set_ether_type,
|
|
|
|
|
.port_pause_config = mv88e6390_port_pause_config,
|
|
|
|
|
.stats_snapshot = mv88e6390_g1_stats_snapshot,
|
|
|
|
|
.stats_set_histogram = mv88e6390_g1_stats_set_histogram,
|
|
|
|
|
.stats_get_sset_count = mv88e6320_stats_get_sset_count,
|
|
|
|
@ -3481,6 +3522,7 @@ static const struct mv88e6xxx_ops mv88e6190x_ops = {
|
|
|
|
|
.stats_get_stats = mv88e6390_stats_get_stats,
|
|
|
|
|
.g1_set_cpu_port = mv88e6390_g1_set_cpu_port,
|
|
|
|
|
.g1_set_egress_port = mv88e6390_g1_set_egress_port,
|
|
|
|
|
.mgmt_rsvd2cpu = mv88e6390_g1_mgmt_rsvd2cpu,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const struct mv88e6xxx_ops mv88e6191_ops = {
|
|
|
|
@ -3496,6 +3538,7 @@ static const struct mv88e6xxx_ops mv88e6191_ops = {
|
|
|
|
|
.port_set_frame_mode = mv88e6351_port_set_frame_mode,
|
|
|
|
|
.port_set_egress_unknowns = mv88e6351_port_set_egress_unknowns,
|
|
|
|
|
.port_set_ether_type = mv88e6351_port_set_ether_type,
|
|
|
|
|
.port_pause_config = mv88e6390_port_pause_config,
|
|
|
|
|
.stats_snapshot = mv88e6390_g1_stats_snapshot,
|
|
|
|
|
.stats_set_histogram = mv88e6390_g1_stats_set_histogram,
|
|
|
|
|
.stats_get_sset_count = mv88e6320_stats_get_sset_count,
|
|
|
|
@ -3503,6 +3546,7 @@ static const struct mv88e6xxx_ops mv88e6191_ops = {
|
|
|
|
|
.stats_get_stats = mv88e6390_stats_get_stats,
|
|
|
|
|
.g1_set_cpu_port = mv88e6390_g1_set_cpu_port,
|
|
|
|
|
.g1_set_egress_port = mv88e6390_g1_set_egress_port,
|
|
|
|
|
.mgmt_rsvd2cpu = mv88e6390_g1_mgmt_rsvd2cpu,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const struct mv88e6xxx_ops mv88e6240_ops = {
|
|
|
|
@ -3520,12 +3564,16 @@ static const struct mv88e6xxx_ops mv88e6240_ops = {
|
|
|
|
|
.port_set_frame_mode = mv88e6351_port_set_frame_mode,
|
|
|
|
|
.port_set_egress_unknowns = mv88e6351_port_set_egress_unknowns,
|
|
|
|
|
.port_set_ether_type = mv88e6351_port_set_ether_type,
|
|
|
|
|
.port_jumbo_config = mv88e6165_port_jumbo_config,
|
|
|
|
|
.port_egress_rate_limiting = mv88e6097_port_egress_rate_limiting,
|
|
|
|
|
.port_pause_config = mv88e6097_port_pause_config,
|
|
|
|
|
.stats_snapshot = mv88e6320_g1_stats_snapshot,
|
|
|
|
|
.stats_get_sset_count = mv88e6095_stats_get_sset_count,
|
|
|
|
|
.stats_get_strings = mv88e6095_stats_get_strings,
|
|
|
|
|
.stats_get_stats = mv88e6095_stats_get_stats,
|
|
|
|
|
.g1_set_cpu_port = mv88e6095_g1_set_cpu_port,
|
|
|
|
|
.g1_set_egress_port = mv88e6095_g1_set_egress_port,
|
|
|
|
|
.mgmt_rsvd2cpu = mv88e6095_g2_mgmt_rsvd2cpu,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const struct mv88e6xxx_ops mv88e6290_ops = {
|
|
|
|
@ -3541,6 +3589,7 @@ static const struct mv88e6xxx_ops mv88e6290_ops = {
|
|
|
|
|
.port_set_frame_mode = mv88e6351_port_set_frame_mode,
|
|
|
|
|
.port_set_egress_unknowns = mv88e6351_port_set_egress_unknowns,
|
|
|
|
|
.port_set_ether_type = mv88e6351_port_set_ether_type,
|
|
|
|
|
.port_pause_config = mv88e6390_port_pause_config,
|
|
|
|
|
.stats_snapshot = mv88e6390_g1_stats_snapshot,
|
|
|
|
|
.stats_set_histogram = mv88e6390_g1_stats_set_histogram,
|
|
|
|
|
.stats_get_sset_count = mv88e6320_stats_get_sset_count,
|
|
|
|
@ -3548,6 +3597,7 @@ static const struct mv88e6xxx_ops mv88e6290_ops = {
|
|
|
|
|
.stats_get_stats = mv88e6390_stats_get_stats,
|
|
|
|
|
.g1_set_cpu_port = mv88e6390_g1_set_cpu_port,
|
|
|
|
|
.g1_set_egress_port = mv88e6390_g1_set_egress_port,
|
|
|
|
|
.mgmt_rsvd2cpu = mv88e6390_g1_mgmt_rsvd2cpu,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const struct mv88e6xxx_ops mv88e6320_ops = {
|
|
|
|
@ -3564,12 +3614,16 @@ static const struct mv88e6xxx_ops mv88e6320_ops = {
|
|
|
|
|
.port_set_frame_mode = mv88e6351_port_set_frame_mode,
|
|
|
|
|
.port_set_egress_unknowns = mv88e6351_port_set_egress_unknowns,
|
|
|
|
|
.port_set_ether_type = mv88e6351_port_set_ether_type,
|
|
|
|
|
.port_jumbo_config = mv88e6165_port_jumbo_config,
|
|
|
|
|
.port_egress_rate_limiting = mv88e6097_port_egress_rate_limiting,
|
|
|
|
|
.port_pause_config = mv88e6097_port_pause_config,
|
|
|
|
|
.stats_snapshot = mv88e6320_g1_stats_snapshot,
|
|
|
|
|
.stats_get_sset_count = mv88e6320_stats_get_sset_count,
|
|
|
|
|
.stats_get_strings = mv88e6320_stats_get_strings,
|
|
|
|
|
.stats_get_stats = mv88e6320_stats_get_stats,
|
|
|
|
|
.g1_set_cpu_port = mv88e6095_g1_set_cpu_port,
|
|
|
|
|
.g1_set_egress_port = mv88e6095_g1_set_egress_port,
|
|
|
|
|
.mgmt_rsvd2cpu = mv88e6095_g2_mgmt_rsvd2cpu,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const struct mv88e6xxx_ops mv88e6321_ops = {
|
|
|
|
@ -3586,6 +3640,9 @@ static const struct mv88e6xxx_ops mv88e6321_ops = {
|
|
|
|
|
.port_set_frame_mode = mv88e6351_port_set_frame_mode,
|
|
|
|
|
.port_set_egress_unknowns = mv88e6351_port_set_egress_unknowns,
|
|
|
|
|
.port_set_ether_type = mv88e6351_port_set_ether_type,
|
|
|
|
|
.port_jumbo_config = mv88e6165_port_jumbo_config,
|
|
|
|
|
.port_egress_rate_limiting = mv88e6097_port_egress_rate_limiting,
|
|
|
|
|
.port_pause_config = mv88e6097_port_pause_config,
|
|
|
|
|
.stats_snapshot = mv88e6320_g1_stats_snapshot,
|
|
|
|
|
.stats_get_sset_count = mv88e6320_stats_get_sset_count,
|
|
|
|
|
.stats_get_strings = mv88e6320_stats_get_strings,
|
|
|
|
@ -3607,12 +3664,16 @@ static const struct mv88e6xxx_ops mv88e6350_ops = {
|
|
|
|
|
.port_set_frame_mode = mv88e6351_port_set_frame_mode,
|
|
|
|
|
.port_set_egress_unknowns = mv88e6351_port_set_egress_unknowns,
|
|
|
|
|
.port_set_ether_type = mv88e6351_port_set_ether_type,
|
|
|
|
|
.port_jumbo_config = mv88e6165_port_jumbo_config,
|
|
|
|
|
.port_egress_rate_limiting = mv88e6097_port_egress_rate_limiting,
|
|
|
|
|
.port_pause_config = mv88e6097_port_pause_config,
|
|
|
|
|
.stats_snapshot = mv88e6320_g1_stats_snapshot,
|
|
|
|
|
.stats_get_sset_count = mv88e6095_stats_get_sset_count,
|
|
|
|
|
.stats_get_strings = mv88e6095_stats_get_strings,
|
|
|
|
|
.stats_get_stats = mv88e6095_stats_get_stats,
|
|
|
|
|
.g1_set_cpu_port = mv88e6095_g1_set_cpu_port,
|
|
|
|
|
.g1_set_egress_port = mv88e6095_g1_set_egress_port,
|
|
|
|
|
.mgmt_rsvd2cpu = mv88e6095_g2_mgmt_rsvd2cpu,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const struct mv88e6xxx_ops mv88e6351_ops = {
|
|
|
|
@ -3628,12 +3689,16 @@ static const struct mv88e6xxx_ops mv88e6351_ops = {
|
|
|
|
|
.port_set_frame_mode = mv88e6351_port_set_frame_mode,
|
|
|
|
|
.port_set_egress_unknowns = mv88e6351_port_set_egress_unknowns,
|
|
|
|
|
.port_set_ether_type = mv88e6351_port_set_ether_type,
|
|
|
|
|
.port_jumbo_config = mv88e6165_port_jumbo_config,
|
|
|
|
|
.port_egress_rate_limiting = mv88e6097_port_egress_rate_limiting,
|
|
|
|
|
.port_pause_config = mv88e6097_port_pause_config,
|
|
|
|
|
.stats_snapshot = mv88e6320_g1_stats_snapshot,
|
|
|
|
|
.stats_get_sset_count = mv88e6095_stats_get_sset_count,
|
|
|
|
|
.stats_get_strings = mv88e6095_stats_get_strings,
|
|
|
|
|
.stats_get_stats = mv88e6095_stats_get_stats,
|
|
|
|
|
.g1_set_cpu_port = mv88e6095_g1_set_cpu_port,
|
|
|
|
|
.g1_set_egress_port = mv88e6095_g1_set_egress_port,
|
|
|
|
|
.mgmt_rsvd2cpu = mv88e6095_g2_mgmt_rsvd2cpu,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const struct mv88e6xxx_ops mv88e6352_ops = {
|
|
|
|
@ -3651,12 +3716,16 @@ static const struct mv88e6xxx_ops mv88e6352_ops = {
|
|
|
|
|
.port_set_frame_mode = mv88e6351_port_set_frame_mode,
|
|
|
|
|
.port_set_egress_unknowns = mv88e6351_port_set_egress_unknowns,
|
|
|
|
|
.port_set_ether_type = mv88e6351_port_set_ether_type,
|
|
|
|
|
.port_jumbo_config = mv88e6165_port_jumbo_config,
|
|
|
|
|
.port_egress_rate_limiting = mv88e6097_port_egress_rate_limiting,
|
|
|
|
|
.port_pause_config = mv88e6097_port_pause_config,
|
|
|
|
|
.stats_snapshot = mv88e6320_g1_stats_snapshot,
|
|
|
|
|
.stats_get_sset_count = mv88e6095_stats_get_sset_count,
|
|
|
|
|
.stats_get_strings = mv88e6095_stats_get_strings,
|
|
|
|
|
.stats_get_stats = mv88e6095_stats_get_stats,
|
|
|
|
|
.g1_set_cpu_port = mv88e6095_g1_set_cpu_port,
|
|
|
|
|
.g1_set_egress_port = mv88e6095_g1_set_egress_port,
|
|
|
|
|
.mgmt_rsvd2cpu = mv88e6095_g2_mgmt_rsvd2cpu,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const struct mv88e6xxx_ops mv88e6390_ops = {
|
|
|
|
@ -3672,6 +3741,9 @@ static const struct mv88e6xxx_ops mv88e6390_ops = {
|
|
|
|
|
.port_set_frame_mode = mv88e6351_port_set_frame_mode,
|
|
|
|
|
.port_set_egress_unknowns = mv88e6351_port_set_egress_unknowns,
|
|
|
|
|
.port_set_ether_type = mv88e6351_port_set_ether_type,
|
|
|
|
|
.port_jumbo_config = mv88e6165_port_jumbo_config,
|
|
|
|
|
.port_egress_rate_limiting = mv88e6097_port_egress_rate_limiting,
|
|
|
|
|
.port_pause_config = mv88e6390_port_pause_config,
|
|
|
|
|
.stats_snapshot = mv88e6390_g1_stats_snapshot,
|
|
|
|
|
.stats_set_histogram = mv88e6390_g1_stats_set_histogram,
|
|
|
|
|
.stats_get_sset_count = mv88e6320_stats_get_sset_count,
|
|
|
|
@ -3679,6 +3751,7 @@ static const struct mv88e6xxx_ops mv88e6390_ops = {
|
|
|
|
|
.stats_get_stats = mv88e6390_stats_get_stats,
|
|
|
|
|
.g1_set_cpu_port = mv88e6390_g1_set_cpu_port,
|
|
|
|
|
.g1_set_egress_port = mv88e6390_g1_set_egress_port,
|
|
|
|
|
.mgmt_rsvd2cpu = mv88e6390_g1_mgmt_rsvd2cpu,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const struct mv88e6xxx_ops mv88e6390x_ops = {
|
|
|
|
@ -3694,6 +3767,9 @@ static const struct mv88e6xxx_ops mv88e6390x_ops = {
|
|
|
|
|
.port_set_frame_mode = mv88e6351_port_set_frame_mode,
|
|
|
|
|
.port_set_egress_unknowns = mv88e6351_port_set_egress_unknowns,
|
|
|
|
|
.port_set_ether_type = mv88e6351_port_set_ether_type,
|
|
|
|
|
.port_jumbo_config = mv88e6165_port_jumbo_config,
|
|
|
|
|
.port_egress_rate_limiting = mv88e6097_port_egress_rate_limiting,
|
|
|
|
|
.port_pause_config = mv88e6390_port_pause_config,
|
|
|
|
|
.stats_snapshot = mv88e6390_g1_stats_snapshot,
|
|
|
|
|
.stats_set_histogram = mv88e6390_g1_stats_set_histogram,
|
|
|
|
|
.stats_get_sset_count = mv88e6320_stats_get_sset_count,
|
|
|
|
@ -3701,6 +3777,7 @@ static const struct mv88e6xxx_ops mv88e6390x_ops = {
|
|
|
|
|
.stats_get_stats = mv88e6390_stats_get_stats,
|
|
|
|
|
.g1_set_cpu_port = mv88e6390_g1_set_cpu_port,
|
|
|
|
|
.g1_set_egress_port = mv88e6390_g1_set_egress_port,
|
|
|
|
|
.mgmt_rsvd2cpu = mv88e6390_g1_mgmt_rsvd2cpu,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const struct mv88e6xxx_ops mv88e6391_ops = {
|
|
|
|
@ -3716,6 +3793,7 @@ static const struct mv88e6xxx_ops mv88e6391_ops = {
|
|
|
|
|
.port_set_frame_mode = mv88e6351_port_set_frame_mode,
|
|
|
|
|
.port_set_egress_unknowns = mv88e6351_port_set_egress_unknowns,
|
|
|
|
|
.port_set_ether_type = mv88e6351_port_set_ether_type,
|
|
|
|
|
.port_pause_config = mv88e6390_port_pause_config,
|
|
|
|
|
.stats_snapshot = mv88e6390_g1_stats_snapshot,
|
|
|
|
|
.stats_set_histogram = mv88e6390_g1_stats_set_histogram,
|
|
|
|
|
.stats_get_sset_count = mv88e6320_stats_get_sset_count,
|
|
|
|
@ -3723,6 +3801,7 @@ static const struct mv88e6xxx_ops mv88e6391_ops = {
|
|
|
|
|
.stats_get_stats = mv88e6390_stats_get_stats,
|
|
|
|
|
.g1_set_cpu_port = mv88e6390_g1_set_cpu_port,
|
|
|
|
|
.g1_set_egress_port = mv88e6390_g1_set_egress_port,
|
|
|
|
|
.mgmt_rsvd2cpu = mv88e6390_g1_mgmt_rsvd2cpu,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static int mv88e6xxx_verify_madatory_ops(struct mv88e6xxx_chip *chip,
|
|
|
|
|