dsa: Pass the port to get_sset_count()
By passing the port, we allow different ports to have different statistics. This is useful since some ports have SERDES interfaces with their own statistic counters. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Tested-by: Florian Fainelli <f.fainelli@gmail.com> Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
efab163bbc
commit
88c060549a
@@ -86,7 +86,7 @@ static int dsa_loop_setup(struct dsa_switch *ds)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int dsa_loop_get_sset_count(struct dsa_switch *ds)
|
||||
static int dsa_loop_get_sset_count(struct dsa_switch *ds, int port)
|
||||
{
|
||||
return __DSA_LOOP_CNT_MAX;
|
||||
}
|
||||
|
Reference in New Issue
Block a user