1 /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */ 2 /* Copyright (c) 2017-2018 Mellanox Technologies. All rights reserved */ 3 4 #ifndef _MLXSW_PIPELINE_H_ 5 #define _MLXSW_PIPELINE_H_ 6 7 #if IS_ENABLED(CONFIG_NET_DEVLINK) 8 9 int mlxsw_sp_dpipe_init(struct mlxsw_sp *mlxsw_sp); 10 void mlxsw_sp_dpipe_fini(struct mlxsw_sp *mlxsw_sp); 11 12 #else 13 14 static inline int mlxsw_sp_dpipe_init(struct mlxsw_sp *mlxsw_sp) 15 { 16 return 0; 17 } 18 19 static inline void mlxsw_sp_dpipe_fini(struct mlxsw_sp *mlxsw_sp) 20 { 21 } 22 23 #endif 24 25 #define MLXSW_SP_DPIPE_TABLE_NAME_ERIF "mlxsw_erif" 26 #define MLXSW_SP_DPIPE_TABLE_NAME_HOST4 "mlxsw_host4" 27 #define MLXSW_SP_DPIPE_TABLE_NAME_HOST6 "mlxsw_host6" 28 #define MLXSW_SP_DPIPE_TABLE_NAME_ADJ "mlxsw_adj" 29 30 #endif /* _MLXSW_PIPELINE_H_*/ 31