@@ -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 ;
0 commit comments