diff options
author | Arkadi Sharshevsky <arkadis@mellanox.com> | 2017-03-28 17:24:16 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-03-28 17:11:55 -0700 |
commit | fd1b9d41928824eda4694a1015e7ccf233bfff3e (patch) | |
tree | 19d6bc402d5d055762c79c7407b748eaec26ba2f /drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h | |
parent | e0c0afd8aa4e2f0ecfb7f6d9c4c7f87e07d54132 (diff) | |
download | linux-stable-fd1b9d41928824eda4694a1015e7ccf233bfff3e.tar.gz linux-stable-fd1b9d41928824eda4694a1015e7ccf233bfff3e.tar.bz2 linux-stable-fd1b9d41928824eda4694a1015e7ccf233bfff3e.zip |
mlxsw: spectrum_router: Add rif helper functions
Add rif helper function to access the rif index and rif devices ifindex.
This functions will be used by dpipe in order to dump the rif table.
Signed-off-by: Arkadi Sharshevsky <arkadis@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h b/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h index f469dc930097..c3095fef6697 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h @@ -42,6 +42,8 @@ enum mlxsw_sp_rif_counter_dir { MLXSW_SP_RIF_COUNTER_EGRESS, }; +u16 mlxsw_sp_rif_index(const struct mlxsw_sp_rif *rif); +int mlxsw_sp_rif_dev_ifindex(const struct mlxsw_sp_rif *rif); int mlxsw_sp_rif_counter_value_get(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_rif *rif, enum mlxsw_sp_rif_counter_dir dir, |