OSDN Git Service

net: mscc: ocelot: drop port argument from qos_policer_conf_set
authorVladimir Oltean <vladimir.oltean@nxp.com>
Tue, 3 May 2022 12:01:49 +0000 (15:01 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 5 May 2022 03:42:15 +0000 (20:42 -0700)
commit8e90c499bd6816f6dc4127f071179e7bd190e5aa
tree14c45c7f158a12bd175808b21c1886b91daf7b4f
parent09fd1e0d14815fd2c80577f4116c8976d8d080f8
net: mscc: ocelot: drop port argument from qos_policer_conf_set

The "port" argument is used for nothing else except printing on the
error path. Print errors on behalf of the policer index, which is less
confusing anyway.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mscc/ocelot_police.c
drivers/net/ethernet/mscc/ocelot_police.h
drivers/net/ethernet/mscc/ocelot_vcap.c