Skip to content

Commit 5c4025e

Browse files
committed
ON-14783: Supress FW variant warning on X3 NICs
1 parent 4efba79 commit 5c4025e

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/lib/zf/private/stack_alloc.c

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -579,14 +579,6 @@ int zf_stack_init_nic_resources(struct zf_stack_impl* sti,
579579
if( rc < 0 )
580580
goto fail1;
581581

582-
if( !(sti->nic[nicno].flags & ZF_RES_NIC_FLAG_RX_LL) ||
583-
!(sti->nic[nicno].flags & ZF_RES_NIC_FLAG_TX_LL) ) {
584-
zf_log_stack_warn(st, "Interface %s is not in low latency mode.\n",
585-
sti->nic[nicno].if_name);
586-
zf_log_stack_warn(st, "Low latency mode is recommended for best "
587-
"latency with TCPDirect.\n");
588-
}
589-
590582
if ( attr->tx_ring_max != 0 ) {
591583
rc = zf_stack_init_ctpio_nic_config(sti, attr, ctpio_mode, nicno, &vi_flags);
592584
if( rc < 0 )
@@ -654,6 +646,15 @@ int zf_stack_init_nic_resources(struct zf_stack_impl* sti,
654646
ef_vi_receive_set_buffer_len(&st_nic->vi, PKT_BUF_SIZE_USABLE);
655647
}
656648

649+
if( (!(sti->nic[nicno].flags & ZF_RES_NIC_FLAG_RX_LL) ||
650+
!(sti->nic[nicno].flags & ZF_RES_NIC_FLAG_TX_LL)) &&
651+
!(st_nic->vi.nic_type.arch == EF_VI_ARCH_EFCT) ) {
652+
zf_log_stack_warn(st, "Interface %s is not in low latency mode.\n",
653+
sti->nic[nicno].if_name);
654+
zf_log_stack_warn(st, "Low latency mode is recommended for best "
655+
"latency with TCPDirect.\n");
656+
}
657+
657658
zf_log_stack_info(st,
658659
"rxq_size=%d txq_size=%d evq_size=%d rx_prefix_len=%d\n",
659660
ef_vi_receive_capacity(&st_nic->vi),

0 commit comments

Comments
 (0)