blob: c3a275bb46cf1b4e3169b04e5aa43bfe288f7ac8 [file] [log] [blame]
Jiri Pirko56ade8f2015-10-16 14:01:37 +02001/*
2 * drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c
3 * Copyright (c) 2015 Mellanox Technologies. All rights reserved.
4 * Copyright (c) 2015 Jiri Pirko <jiri@mellanox.com>
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met:
8 *
9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * 3. Neither the names of the copyright holders nor the names of its
15 * contributors may be used to endorse or promote products derived from
16 * this software without specific prior written permission.
17 *
18 * Alternatively, this software may be distributed under the terms of the
19 * GNU General Public License ("GPL") version 2 as published by the Free
20 * Software Foundation.
21 *
22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
26 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
27 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
28 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
29 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
30 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
31 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32 * POSSIBILITY OF SUCH DAMAGE.
33 */
34
35#include <linux/kernel.h>
36#include <linux/types.h>
Ido Schimmeldd6cb0f2016-04-06 17:10:01 +020037#include <linux/dcbnl.h>
Jiri Pirko56ade8f2015-10-16 14:01:37 +020038
39#include "spectrum.h"
40#include "core.h"
41#include "port.h"
42#include "reg.h"
43
44struct mlxsw_sp_pb {
45 u8 index;
46 u16 size;
47};
48
49#define MLXSW_SP_PB(_index, _size) \
50 { \
51 .index = _index, \
52 .size = _size, \
53 }
54
55static const struct mlxsw_sp_pb mlxsw_sp_pbs[] = {
56 MLXSW_SP_PB(0, 208),
57 MLXSW_SP_PB(1, 208),
58 MLXSW_SP_PB(2, 208),
59 MLXSW_SP_PB(3, 208),
60 MLXSW_SP_PB(4, 208),
61 MLXSW_SP_PB(5, 208),
62 MLXSW_SP_PB(6, 208),
63 MLXSW_SP_PB(7, 208),
64 MLXSW_SP_PB(9, 208),
65};
66
67#define MLXSW_SP_PBS_LEN ARRAY_SIZE(mlxsw_sp_pbs)
68
69static int mlxsw_sp_port_pb_init(struct mlxsw_sp_port *mlxsw_sp_port)
70{
71 char pbmc_pl[MLXSW_REG_PBMC_LEN];
72 int i;
73
74 mlxsw_reg_pbmc_pack(pbmc_pl, mlxsw_sp_port->local_port,
75 0xffff, 0xffff / 2);
76 for (i = 0; i < MLXSW_SP_PBS_LEN; i++) {
77 const struct mlxsw_sp_pb *pb;
78
79 pb = &mlxsw_sp_pbs[i];
80 mlxsw_reg_pbmc_lossy_buffer_pack(pbmc_pl, pb->index, pb->size);
81 }
82 return mlxsw_reg_write(mlxsw_sp_port->mlxsw_sp->core,
83 MLXSW_REG(pbmc), pbmc_pl);
84}
85
Ido Schimmeldd6cb0f2016-04-06 17:10:01 +020086static int mlxsw_sp_port_pb_prio_init(struct mlxsw_sp_port *mlxsw_sp_port)
87{
88 char pptb_pl[MLXSW_REG_PPTB_LEN];
89 int i;
90
91 mlxsw_reg_pptb_pack(pptb_pl, mlxsw_sp_port->local_port);
92 for (i = 0; i < IEEE_8021QAZ_MAX_TCS; i++)
93 mlxsw_reg_pptb_prio_to_buff_set(pptb_pl, i, 0);
94 return mlxsw_reg_write(mlxsw_sp_port->mlxsw_sp->core, MLXSW_REG(pptb),
95 pptb_pl);
96}
97
98static int mlxsw_sp_port_headroom_init(struct mlxsw_sp_port *mlxsw_sp_port)
99{
100 int err;
101
102 err = mlxsw_sp_port_pb_init(mlxsw_sp_port);
103 if (err)
104 return err;
105 return mlxsw_sp_port_pb_prio_init(mlxsw_sp_port);
106}
107
Jiri Pirko56ade8f2015-10-16 14:01:37 +0200108#define MLXSW_SP_SB_BYTES_PER_CELL 96
109
110struct mlxsw_sp_sb_pool {
111 u8 pool;
112 enum mlxsw_reg_sbpr_dir dir;
113 enum mlxsw_reg_sbpr_mode mode;
114 u32 size;
115};
116
117#define MLXSW_SP_SB_POOL_INGRESS_SIZE \
118 ((15000000 - (2 * 20000 * MLXSW_PORT_MAX_PORTS)) / \
119 MLXSW_SP_SB_BYTES_PER_CELL)
120#define MLXSW_SP_SB_POOL_EGRESS_SIZE \
121 ((14000000 - (8 * 1500 * MLXSW_PORT_MAX_PORTS)) / \
122 MLXSW_SP_SB_BYTES_PER_CELL)
123
124#define MLXSW_SP_SB_POOL(_pool, _dir, _mode, _size) \
125 { \
126 .pool = _pool, \
127 .dir = _dir, \
128 .mode = _mode, \
129 .size = _size, \
130 }
131
132#define MLXSW_SP_SB_POOL_INGRESS(_pool, _size) \
133 MLXSW_SP_SB_POOL(_pool, MLXSW_REG_SBPR_DIR_INGRESS, \
134 MLXSW_REG_SBPR_MODE_DYNAMIC, _size)
135
136#define MLXSW_SP_SB_POOL_EGRESS(_pool, _size) \
137 MLXSW_SP_SB_POOL(_pool, MLXSW_REG_SBPR_DIR_EGRESS, \
138 MLXSW_REG_SBPR_MODE_DYNAMIC, _size)
139
140static const struct mlxsw_sp_sb_pool mlxsw_sp_sb_pools[] = {
141 MLXSW_SP_SB_POOL_INGRESS(0, MLXSW_SP_SB_POOL_INGRESS_SIZE),
142 MLXSW_SP_SB_POOL_INGRESS(1, 0),
143 MLXSW_SP_SB_POOL_INGRESS(2, 0),
144 MLXSW_SP_SB_POOL_INGRESS(3, 0),
145 MLXSW_SP_SB_POOL_EGRESS(0, MLXSW_SP_SB_POOL_EGRESS_SIZE),
146 MLXSW_SP_SB_POOL_EGRESS(1, 0),
147 MLXSW_SP_SB_POOL_EGRESS(2, 0),
148 MLXSW_SP_SB_POOL_EGRESS(2, MLXSW_SP_SB_POOL_EGRESS_SIZE),
149};
150
151#define MLXSW_SP_SB_POOLS_LEN ARRAY_SIZE(mlxsw_sp_sb_pools)
152
153static int mlxsw_sp_sb_pools_init(struct mlxsw_sp *mlxsw_sp)
154{
155 char sbpr_pl[MLXSW_REG_SBPR_LEN];
156 int i;
157 int err;
158
159 for (i = 0; i < MLXSW_SP_SB_POOLS_LEN; i++) {
160 const struct mlxsw_sp_sb_pool *pool;
161
162 pool = &mlxsw_sp_sb_pools[i];
163 mlxsw_reg_sbpr_pack(sbpr_pl, pool->pool, pool->dir,
164 pool->mode, pool->size);
165 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sbpr), sbpr_pl);
166 if (err)
167 return err;
168 }
169 return 0;
170}
171
172struct mlxsw_sp_sb_cm {
173 union {
174 u8 pg;
175 u8 tc;
176 } u;
177 enum mlxsw_reg_sbcm_dir dir;
178 u32 min_buff;
179 u32 max_buff;
180 u8 pool;
181};
182
183#define MLXSW_SP_SB_CM(_pg_tc, _dir, _min_buff, _max_buff, _pool) \
184 { \
185 .u.pg = _pg_tc, \
186 .dir = _dir, \
187 .min_buff = _min_buff, \
188 .max_buff = _max_buff, \
189 .pool = _pool, \
190 }
191
192#define MLXSW_SP_SB_CM_INGRESS(_pg, _min_buff, _max_buff) \
193 MLXSW_SP_SB_CM(_pg, MLXSW_REG_SBCM_DIR_INGRESS, \
194 _min_buff, _max_buff, 0)
195
196#define MLXSW_SP_SB_CM_EGRESS(_tc, _min_buff, _max_buff) \
197 MLXSW_SP_SB_CM(_tc, MLXSW_REG_SBCM_DIR_EGRESS, \
198 _min_buff, _max_buff, 0)
199
200#define MLXSW_SP_CPU_PORT_SB_CM_EGRESS(_tc) \
201 MLXSW_SP_SB_CM(_tc, MLXSW_REG_SBCM_DIR_EGRESS, 104, 2, 3)
202
203static const struct mlxsw_sp_sb_cm mlxsw_sp_sb_cms[] = {
204 MLXSW_SP_SB_CM_INGRESS(0, 10000 / MLXSW_SP_SB_BYTES_PER_CELL, 8),
205 MLXSW_SP_SB_CM_INGRESS(1, 0, 0),
206 MLXSW_SP_SB_CM_INGRESS(2, 0, 0),
207 MLXSW_SP_SB_CM_INGRESS(3, 0, 0),
208 MLXSW_SP_SB_CM_INGRESS(4, 0, 0),
209 MLXSW_SP_SB_CM_INGRESS(5, 0, 0),
210 MLXSW_SP_SB_CM_INGRESS(6, 0, 0),
211 MLXSW_SP_SB_CM_INGRESS(7, 0, 0),
212 MLXSW_SP_SB_CM_INGRESS(9, 20000 / MLXSW_SP_SB_BYTES_PER_CELL, 0xff),
213 MLXSW_SP_SB_CM_EGRESS(0, 1500 / MLXSW_SP_SB_BYTES_PER_CELL, 9),
214 MLXSW_SP_SB_CM_EGRESS(1, 1500 / MLXSW_SP_SB_BYTES_PER_CELL, 9),
215 MLXSW_SP_SB_CM_EGRESS(2, 1500 / MLXSW_SP_SB_BYTES_PER_CELL, 9),
216 MLXSW_SP_SB_CM_EGRESS(3, 1500 / MLXSW_SP_SB_BYTES_PER_CELL, 9),
217 MLXSW_SP_SB_CM_EGRESS(4, 1500 / MLXSW_SP_SB_BYTES_PER_CELL, 9),
218 MLXSW_SP_SB_CM_EGRESS(5, 1500 / MLXSW_SP_SB_BYTES_PER_CELL, 9),
219 MLXSW_SP_SB_CM_EGRESS(6, 1500 / MLXSW_SP_SB_BYTES_PER_CELL, 9),
220 MLXSW_SP_SB_CM_EGRESS(7, 1500 / MLXSW_SP_SB_BYTES_PER_CELL, 9),
221 MLXSW_SP_SB_CM_EGRESS(8, 0, 0),
222 MLXSW_SP_SB_CM_EGRESS(9, 0, 0),
223 MLXSW_SP_SB_CM_EGRESS(10, 0, 0),
224 MLXSW_SP_SB_CM_EGRESS(11, 0, 0),
225 MLXSW_SP_SB_CM_EGRESS(12, 0, 0),
226 MLXSW_SP_SB_CM_EGRESS(13, 0, 0),
227 MLXSW_SP_SB_CM_EGRESS(14, 0, 0),
228 MLXSW_SP_SB_CM_EGRESS(15, 0, 0),
229 MLXSW_SP_SB_CM_EGRESS(16, 1, 0xff),
230};
231
232#define MLXSW_SP_SB_CMS_LEN ARRAY_SIZE(mlxsw_sp_sb_cms)
233
234static const struct mlxsw_sp_sb_cm mlxsw_sp_cpu_port_sb_cms[] = {
235 MLXSW_SP_CPU_PORT_SB_CM_EGRESS(0),
236 MLXSW_SP_CPU_PORT_SB_CM_EGRESS(1),
237 MLXSW_SP_CPU_PORT_SB_CM_EGRESS(2),
238 MLXSW_SP_CPU_PORT_SB_CM_EGRESS(3),
239 MLXSW_SP_CPU_PORT_SB_CM_EGRESS(4),
240 MLXSW_SP_CPU_PORT_SB_CM_EGRESS(5),
241 MLXSW_SP_CPU_PORT_SB_CM_EGRESS(6),
242 MLXSW_SP_CPU_PORT_SB_CM_EGRESS(7),
243 MLXSW_SP_CPU_PORT_SB_CM_EGRESS(8),
244 MLXSW_SP_CPU_PORT_SB_CM_EGRESS(9),
245 MLXSW_SP_CPU_PORT_SB_CM_EGRESS(10),
246 MLXSW_SP_CPU_PORT_SB_CM_EGRESS(11),
247 MLXSW_SP_CPU_PORT_SB_CM_EGRESS(12),
248 MLXSW_SP_CPU_PORT_SB_CM_EGRESS(13),
249 MLXSW_SP_CPU_PORT_SB_CM_EGRESS(14),
250 MLXSW_SP_CPU_PORT_SB_CM_EGRESS(15),
251 MLXSW_SP_CPU_PORT_SB_CM_EGRESS(16),
252 MLXSW_SP_CPU_PORT_SB_CM_EGRESS(17),
253 MLXSW_SP_CPU_PORT_SB_CM_EGRESS(18),
254 MLXSW_SP_CPU_PORT_SB_CM_EGRESS(19),
255 MLXSW_SP_CPU_PORT_SB_CM_EGRESS(20),
256 MLXSW_SP_CPU_PORT_SB_CM_EGRESS(21),
257 MLXSW_SP_CPU_PORT_SB_CM_EGRESS(22),
258 MLXSW_SP_CPU_PORT_SB_CM_EGRESS(23),
259 MLXSW_SP_CPU_PORT_SB_CM_EGRESS(24),
260 MLXSW_SP_CPU_PORT_SB_CM_EGRESS(25),
261 MLXSW_SP_CPU_PORT_SB_CM_EGRESS(26),
262 MLXSW_SP_CPU_PORT_SB_CM_EGRESS(27),
263 MLXSW_SP_CPU_PORT_SB_CM_EGRESS(28),
264 MLXSW_SP_CPU_PORT_SB_CM_EGRESS(29),
265 MLXSW_SP_CPU_PORT_SB_CM_EGRESS(30),
266 MLXSW_SP_CPU_PORT_SB_CM_EGRESS(31),
267};
268
269#define MLXSW_SP_CPU_PORT_SB_MCS_LEN \
270 ARRAY_SIZE(mlxsw_sp_cpu_port_sb_cms)
271
272static int mlxsw_sp_sb_cms_init(struct mlxsw_sp *mlxsw_sp, u8 local_port,
273 const struct mlxsw_sp_sb_cm *cms,
274 size_t cms_len)
275{
276 char sbcm_pl[MLXSW_REG_SBCM_LEN];
277 int i;
278 int err;
279
280 for (i = 0; i < cms_len; i++) {
281 const struct mlxsw_sp_sb_cm *cm;
282
283 cm = &cms[i];
284 mlxsw_reg_sbcm_pack(sbcm_pl, local_port, cm->u.pg, cm->dir,
285 cm->min_buff, cm->max_buff, cm->pool);
286 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sbcm), sbcm_pl);
287 if (err)
288 return err;
289 }
290 return 0;
291}
292
293static int mlxsw_sp_port_sb_cms_init(struct mlxsw_sp_port *mlxsw_sp_port)
294{
295 return mlxsw_sp_sb_cms_init(mlxsw_sp_port->mlxsw_sp,
296 mlxsw_sp_port->local_port, mlxsw_sp_sb_cms,
297 MLXSW_SP_SB_CMS_LEN);
298}
299
300static int mlxsw_sp_cpu_port_sb_cms_init(struct mlxsw_sp *mlxsw_sp)
301{
302 return mlxsw_sp_sb_cms_init(mlxsw_sp, 0, mlxsw_sp_cpu_port_sb_cms,
303 MLXSW_SP_CPU_PORT_SB_MCS_LEN);
304}
305
306struct mlxsw_sp_sb_pm {
307 u8 pool;
308 enum mlxsw_reg_sbpm_dir dir;
309 u32 min_buff;
310 u32 max_buff;
311};
312
313#define MLXSW_SP_SB_PM(_pool, _dir, _min_buff, _max_buff) \
314 { \
315 .pool = _pool, \
316 .dir = _dir, \
317 .min_buff = _min_buff, \
318 .max_buff = _max_buff, \
319 }
320
321#define MLXSW_SP_SB_PM_INGRESS(_pool, _min_buff, _max_buff) \
322 MLXSW_SP_SB_PM(_pool, MLXSW_REG_SBPM_DIR_INGRESS, \
323 _min_buff, _max_buff)
324
325#define MLXSW_SP_SB_PM_EGRESS(_pool, _min_buff, _max_buff) \
326 MLXSW_SP_SB_PM(_pool, MLXSW_REG_SBPM_DIR_EGRESS, \
327 _min_buff, _max_buff)
328
329static const struct mlxsw_sp_sb_pm mlxsw_sp_sb_pms[] = {
330 MLXSW_SP_SB_PM_INGRESS(0, 0, 0xff),
331 MLXSW_SP_SB_PM_INGRESS(1, 0, 0),
332 MLXSW_SP_SB_PM_INGRESS(2, 0, 0),
333 MLXSW_SP_SB_PM_INGRESS(3, 0, 0),
334 MLXSW_SP_SB_PM_EGRESS(0, 0, 7),
335 MLXSW_SP_SB_PM_EGRESS(1, 0, 0),
336 MLXSW_SP_SB_PM_EGRESS(2, 0, 0),
337 MLXSW_SP_SB_PM_EGRESS(3, 0, 0),
338};
339
340#define MLXSW_SP_SB_PMS_LEN ARRAY_SIZE(mlxsw_sp_sb_pms)
341
342static int mlxsw_sp_port_sb_pms_init(struct mlxsw_sp_port *mlxsw_sp_port)
343{
344 char sbpm_pl[MLXSW_REG_SBPM_LEN];
345 int i;
346 int err;
347
348 for (i = 0; i < MLXSW_SP_SB_PMS_LEN; i++) {
349 const struct mlxsw_sp_sb_pm *pm;
350
351 pm = &mlxsw_sp_sb_pms[i];
352 mlxsw_reg_sbpm_pack(sbpm_pl, mlxsw_sp_port->local_port,
353 pm->pool, pm->dir,
354 pm->min_buff, pm->max_buff);
355 err = mlxsw_reg_write(mlxsw_sp_port->mlxsw_sp->core,
356 MLXSW_REG(sbpm), sbpm_pl);
357 if (err)
358 return err;
359 }
360 return 0;
361}
362
363struct mlxsw_sp_sb_mm {
364 u8 prio;
365 u32 min_buff;
366 u32 max_buff;
367 u8 pool;
368};
369
370#define MLXSW_SP_SB_MM(_prio, _min_buff, _max_buff, _pool) \
371 { \
372 .prio = _prio, \
373 .min_buff = _min_buff, \
374 .max_buff = _max_buff, \
375 .pool = _pool, \
376 }
377
378static const struct mlxsw_sp_sb_mm mlxsw_sp_sb_mms[] = {
379 MLXSW_SP_SB_MM(0, 20000 / MLXSW_SP_SB_BYTES_PER_CELL, 0xff, 0),
380 MLXSW_SP_SB_MM(1, 20000 / MLXSW_SP_SB_BYTES_PER_CELL, 0xff, 0),
381 MLXSW_SP_SB_MM(2, 20000 / MLXSW_SP_SB_BYTES_PER_CELL, 0xff, 0),
382 MLXSW_SP_SB_MM(3, 20000 / MLXSW_SP_SB_BYTES_PER_CELL, 0xff, 0),
383 MLXSW_SP_SB_MM(4, 20000 / MLXSW_SP_SB_BYTES_PER_CELL, 0xff, 0),
384 MLXSW_SP_SB_MM(5, 20000 / MLXSW_SP_SB_BYTES_PER_CELL, 0xff, 0),
385 MLXSW_SP_SB_MM(6, 20000 / MLXSW_SP_SB_BYTES_PER_CELL, 0xff, 0),
386 MLXSW_SP_SB_MM(7, 20000 / MLXSW_SP_SB_BYTES_PER_CELL, 0xff, 0),
387 MLXSW_SP_SB_MM(8, 20000 / MLXSW_SP_SB_BYTES_PER_CELL, 0xff, 0),
388 MLXSW_SP_SB_MM(9, 20000 / MLXSW_SP_SB_BYTES_PER_CELL, 0xff, 0),
389 MLXSW_SP_SB_MM(10, 20000 / MLXSW_SP_SB_BYTES_PER_CELL, 0xff, 0),
390 MLXSW_SP_SB_MM(11, 20000 / MLXSW_SP_SB_BYTES_PER_CELL, 0xff, 0),
391 MLXSW_SP_SB_MM(12, 20000 / MLXSW_SP_SB_BYTES_PER_CELL, 0xff, 0),
392 MLXSW_SP_SB_MM(13, 20000 / MLXSW_SP_SB_BYTES_PER_CELL, 0xff, 0),
393 MLXSW_SP_SB_MM(14, 20000 / MLXSW_SP_SB_BYTES_PER_CELL, 0xff, 0),
394};
395
396#define MLXSW_SP_SB_MMS_LEN ARRAY_SIZE(mlxsw_sp_sb_mms)
397
398static int mlxsw_sp_sb_mms_init(struct mlxsw_sp *mlxsw_sp)
399{
400 char sbmm_pl[MLXSW_REG_SBMM_LEN];
401 int i;
402 int err;
403
404 for (i = 0; i < MLXSW_SP_SB_MMS_LEN; i++) {
405 const struct mlxsw_sp_sb_mm *mc;
406
407 mc = &mlxsw_sp_sb_mms[i];
408 mlxsw_reg_sbmm_pack(sbmm_pl, mc->prio, mc->min_buff,
409 mc->max_buff, mc->pool);
410 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sbmm), sbmm_pl);
411 if (err)
412 return err;
413 }
414 return 0;
415}
416
417int mlxsw_sp_buffers_init(struct mlxsw_sp *mlxsw_sp)
418{
419 int err;
420
421 err = mlxsw_sp_sb_pools_init(mlxsw_sp);
422 if (err)
423 return err;
424 err = mlxsw_sp_cpu_port_sb_cms_init(mlxsw_sp);
425 if (err)
426 return err;
427 err = mlxsw_sp_sb_mms_init(mlxsw_sp);
428
429 return err;
430}
431
432int mlxsw_sp_port_buffers_init(struct mlxsw_sp_port *mlxsw_sp_port)
433{
434 int err;
435
Ido Schimmeldd6cb0f2016-04-06 17:10:01 +0200436 err = mlxsw_sp_port_headroom_init(mlxsw_sp_port);
Jiri Pirko56ade8f2015-10-16 14:01:37 +0200437 if (err)
438 return err;
439 err = mlxsw_sp_port_sb_cms_init(mlxsw_sp_port);
440 if (err)
441 return err;
442 err = mlxsw_sp_port_sb_pms_init(mlxsw_sp_port);
443
444 return err;
445}