Commit 10bf92f
mlxsw: spectrum_router: Add helpers for nexthop counters
The next patch will add the ability to share nexthop counters among
mlxsw nexthops backed by the same core nexthop. To have a place to store
reference count, the counter should be kept in a dedicated structure. In
this patch, introduce the structure together with the related helpers, sans
the refcount, which comes in the next patch.
Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Link: https://lore.kernel.org/r/61f23fa4f8c5d7879f68dacd793d8ab7425f33c0.1709901020.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent 79fa521 commit 10bf92f
1 file changed
Lines changed: 50 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3049 | 3049 | | |
3050 | 3050 | | |
3051 | 3051 | | |
| 3052 | + | |
| 3053 | + | |
3052 | 3054 | | |
3053 | 3055 | | |
3054 | 3056 | | |
| |||
3080 | 3082 | | |
3081 | 3083 | | |
3082 | 3084 | | |
3083 | | - | |
3084 | | - | |
| 3085 | + | |
3085 | 3086 | | |
3086 | 3087 | | |
3087 | 3088 | | |
| |||
3151 | 3152 | | |
3152 | 3153 | | |
3153 | 3154 | | |
| 3155 | + | |
| 3156 | + | |
| 3157 | + | |
| 3158 | + | |
| 3159 | + | |
| 3160 | + | |
| 3161 | + | |
| 3162 | + | |
| 3163 | + | |
| 3164 | + | |
| 3165 | + | |
| 3166 | + | |
| 3167 | + | |
| 3168 | + | |
| 3169 | + | |
| 3170 | + | |
| 3171 | + | |
| 3172 | + | |
| 3173 | + | |
| 3174 | + | |
| 3175 | + | |
| 3176 | + | |
| 3177 | + | |
| 3178 | + | |
| 3179 | + | |
| 3180 | + | |
| 3181 | + | |
| 3182 | + | |
| 3183 | + | |
| 3184 | + | |
| 3185 | + | |
| 3186 | + | |
| 3187 | + | |
3154 | 3188 | | |
3155 | 3189 | | |
3156 | 3190 | | |
| 3191 | + | |
3157 | 3192 | | |
3158 | | - | |
3159 | 3193 | | |
3160 | | - | |
| 3194 | + | |
3161 | 3195 | | |
3162 | 3196 | | |
3163 | 3197 | | |
3164 | 3198 | | |
3165 | 3199 | | |
3166 | 3200 | | |
3167 | 3201 | | |
3168 | | - | |
3169 | | - | |
3170 | | - | |
| 3202 | + | |
| 3203 | + | |
| 3204 | + | |
3171 | 3205 | | |
3172 | | - | |
| 3206 | + | |
3173 | 3207 | | |
3174 | 3208 | | |
3175 | 3209 | | |
3176 | 3210 | | |
3177 | 3211 | | |
3178 | 3212 | | |
3179 | | - | |
| 3213 | + | |
3180 | 3214 | | |
3181 | | - | |
3182 | | - | |
| 3215 | + | |
| 3216 | + | |
3183 | 3217 | | |
3184 | 3218 | | |
3185 | 3219 | | |
3186 | 3220 | | |
3187 | 3221 | | |
3188 | | - | |
| 3222 | + | |
3189 | 3223 | | |
3190 | 3224 | | |
3191 | | - | |
| 3225 | + | |
3192 | 3226 | | |
3193 | 3227 | | |
3194 | 3228 | | |
| |||
3662 | 3696 | | |
3663 | 3697 | | |
3664 | 3698 | | |
3665 | | - | |
3666 | | - | |
| 3699 | + | |
| 3700 | + | |
| 3701 | + | |
3667 | 3702 | | |
3668 | 3703 | | |
3669 | 3704 | | |
| |||
0 commit comments