mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-21 04:53:46 -04:00
net: mscc: ocelot: remove redundant stats_layout pointers
Ever since commit 4d1d157fb6 ("net: mscc: ocelot: share the common stat
definitions between all drivers") the stats_layout entry in ocelot and
felix drivers have become redundant. Remove the unnecessary code.
Suggested-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Colin Foster <colin.foster@in-advantage.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
committed by
Paolo Abeni
parent
837a3d66d6
commit
33d5eeb9a6
@@ -1363,7 +1363,6 @@ static int felix_init_structs(struct felix *felix, int num_phys_ports)
|
||||
return -ENOMEM;
|
||||
|
||||
ocelot->map = felix->info->map;
|
||||
ocelot->stats_layout = felix->info->stats_layout;
|
||||
ocelot->num_mact_rows = felix->info->num_mact_rows;
|
||||
ocelot->vcap = felix->info->vcap;
|
||||
ocelot->vcap_pol.base = felix->info->vcap_pol_base;
|
||||
|
||||
@@ -28,7 +28,6 @@ struct felix_info {
|
||||
const struct ocelot_ops *ops;
|
||||
const u32 *port_modes;
|
||||
int num_mact_rows;
|
||||
const struct ocelot_stat_layout *stats_layout;
|
||||
int num_ports;
|
||||
int num_tx_queues;
|
||||
struct vcap_props *vcap;
|
||||
|
||||
@@ -565,10 +565,6 @@ static const struct reg_field vsc9959_regfields[REGFIELD_MAX] = {
|
||||
[SYS_PAUSE_CFG_PAUSE_ENA] = REG_FIELD_ID(SYS_PAUSE_CFG, 0, 1, 7, 4),
|
||||
};
|
||||
|
||||
static const struct ocelot_stat_layout vsc9959_stats_layout[OCELOT_NUM_STATS] = {
|
||||
OCELOT_COMMON_STATS,
|
||||
};
|
||||
|
||||
static const struct vcap_field vsc9959_vcap_es0_keys[] = {
|
||||
[VCAP_ES0_EGR_PORT] = { 0, 3},
|
||||
[VCAP_ES0_IGR_PORT] = { 3, 3},
|
||||
@@ -2546,7 +2542,6 @@ static const struct felix_info felix_info_vsc9959 = {
|
||||
.regfields = vsc9959_regfields,
|
||||
.map = vsc9959_regmap,
|
||||
.ops = &vsc9959_ops,
|
||||
.stats_layout = vsc9959_stats_layout,
|
||||
.vcap = vsc9959_vcap_props,
|
||||
.vcap_pol_base = VSC9959_VCAP_POLICER_BASE,
|
||||
.vcap_pol_max = VSC9959_VCAP_POLICER_MAX,
|
||||
|
||||
@@ -543,10 +543,6 @@ static const struct reg_field vsc9953_regfields[REGFIELD_MAX] = {
|
||||
[SYS_PAUSE_CFG_PAUSE_ENA] = REG_FIELD_ID(SYS_PAUSE_CFG, 0, 1, 11, 4),
|
||||
};
|
||||
|
||||
static const struct ocelot_stat_layout vsc9953_stats_layout[OCELOT_NUM_STATS] = {
|
||||
OCELOT_COMMON_STATS,
|
||||
};
|
||||
|
||||
static const struct vcap_field vsc9953_vcap_es0_keys[] = {
|
||||
[VCAP_ES0_EGR_PORT] = { 0, 4},
|
||||
[VCAP_ES0_IGR_PORT] = { 4, 4},
|
||||
@@ -970,7 +966,6 @@ static const struct felix_info seville_info_vsc9953 = {
|
||||
.regfields = vsc9953_regfields,
|
||||
.map = vsc9953_regmap,
|
||||
.ops = &vsc9953_ops,
|
||||
.stats_layout = vsc9953_stats_layout,
|
||||
.vcap = vsc9953_vcap_props,
|
||||
.vcap_pol_base = VSC9953_VCAP_POLICER_BASE,
|
||||
.vcap_pol_max = VSC9953_VCAP_POLICER_MAX,
|
||||
|
||||
Reference in New Issue
Block a user