Skip to content

Commit 427479d

Browse files
author
howard.lu
committed
add inline support for nebula-matrix rdma nic
1 parent 943db6a commit 427479d

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

src/perftest_parameters.c

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2134,6 +2134,18 @@ enum ctx_device ib_dev_name(struct ibv_context *context)
21342134
case 0x1023 : dev_fname = YUNSILICON_DIAMOND_NEXT; break;
21352135
default : dev_fname = YUNSILICON_ANDES; break;
21362136
}
2137+
} else if (attr.vendor_id == 0x1f0f) {
2138+
switch (attr.vendor_part_id) {
2139+
case 0x340b : dev_fname = NBL_LEONIS; break; /* leonis snic v3r1 pf */
2140+
case 0x3413 : dev_fname = NBL_LEONIS; break; /* leonis snic v3r1 vf nbl_dev */
2141+
case 0x1047 : dev_fname = NBL_DF200; break; /* DF200 */
2142+
case 0x1226 : dev_fname = NBL_DF200; break; /* DF200 */
2143+
case 0x1227 : dev_fname = NBL_DF200; break; /* DF200 */
2144+
case 0x3500 : dev_fname = NBL_DRACO; break; /* draco use same inline size with df200 */
2145+
case 0x3501 : dev_fname = NBL_DRACO; break;
2146+
case 0x1610 : dev_fname = NBL_RNIC400; break; /* RNIC400 */
2147+
default : dev_fname = NBL_LEONIS;
2148+
}
21372149
} else {
21382150

21392151
//coverity[uninit_use]
@@ -2450,6 +2462,17 @@ static void ctx_set_max_inline(struct ibv_context *context,struct perftest_param
24502462
user_param->inline_size = 48;
24512463
else if (current_dev == INTEL_GEN2)
24522464
user_param->inline_size = 101;
2465+
else if (current_dev == NBL_LEONIS) {
2466+
if (user_param->connection_type == UD)
2467+
user_param->inline_size = 0;
2468+
else
2469+
user_param->inline_size = 48;
2470+
} else if (current_dev == NBL_DF200 || current_dev == NBL_DRACO || current_dev == NBL_RNIC400) {
2471+
if (user_param->connection_type == UD)
2472+
user_param->inline_size = 434;
2473+
else
2474+
user_param->inline_size = 465;
2475+
}
24532476

24542477
} else {
24552478
user_param->inline_size = 0;

src/perftest_parameters.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,10 @@ enum ctx_device {
391391
YUNSILICON_ANDES = 35,
392392
YUNSILICON_DIAMOND = 36,
393393
YUNSILICON_DIAMOND_NEXT = 37,
394+
NBL_LEONIS = 38,
395+
NBL_DRACO = 39,
396+
NBL_DF200 = 40,
397+
NBL_RNIC400 = 41,
394398
};
395399

396400
/* Units for rate limiter */

0 commit comments

Comments
 (0)