Skip to content

Commit dc07ec9

Browse files
Murali Karicheridavem330
authored andcommitted
net: netcp: ethss: re-use stats handling code for 2u hardware
The stats block in 2u cpsw hardware is similar to the one on nu and hence handle it in a similar way by using a macro that includes 2u hardware as well. Signed-off-by: Murali Karicheri <m-karicheri2@ti.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 65c4506 commit dc07ec9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/ti/netcp_ethss.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3398,7 +3398,7 @@ static int set_gbenu_ethss_priv(struct gbe_priv *gbe_dev,
33983398
gbe_dev->num_stats_mods = gbe_dev->max_num_ports;
33993399
gbe_dev->et_stats = gbenu_et_stats;
34003400

3401-
if (IS_SS_ID_NU(gbe_dev))
3401+
if (IS_SS_ID_MU(gbe_dev))
34023402
gbe_dev->num_et_stats = GBENU_ET_STATS_HOST_SIZE +
34033403
(gbe_dev->max_num_slaves * GBENU_ET_STATS_PORT_SIZE);
34043404
else

0 commit comments

Comments
 (0)