diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2017-11-10 15:22:52 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-13 10:34:54 +0900 |
commit | 5ed4e3eb021762fee584ce65620bc822131c7aa0 (patch) | |
tree | 5f3ed5e21d4dfaacb13beec852583aa4ab64f268 /drivers/net/dsa/microchip | |
parent | ee9d3429c0e47a57e3e73b638785cafa33773639 (diff) | |
download | linux-stable-5ed4e3eb021762fee584ce65620bc822131c7aa0.tar.gz linux-stable-5ed4e3eb021762fee584ce65620bc822131c7aa0.tar.bz2 linux-stable-5ed4e3eb021762fee584ce65620bc822131c7aa0.zip |
net: dsa: Pass a port to get_tag_protocol()
A number of drivers want to check whether the configured CPU port is a
possible configuration for enabling tagging, pass down the CPU port
number so they verify that.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/microchip')
-rw-r--r-- | drivers/net/dsa/microchip/ksz_common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/dsa/microchip/ksz_common.c b/drivers/net/dsa/microchip/ksz_common.c index 56cd6d365352..b5be93a1e0df 100644 --- a/drivers/net/dsa/microchip/ksz_common.c +++ b/drivers/net/dsa/microchip/ksz_common.c @@ -394,7 +394,8 @@ static int ksz_setup(struct dsa_switch *ds) return 0; } -static enum dsa_tag_protocol ksz_get_tag_protocol(struct dsa_switch *ds) +static enum dsa_tag_protocol ksz_get_tag_protocol(struct dsa_switch *ds, + int port) { return DSA_TAG_PROTO_KSZ; } |