From bdebccafaf5febf3da3f994a14a4d175c9072f27 Mon Sep 17 00:00:00 2001 From: Michal Krawczyk Date: Wed, 12 Aug 2020 18:37:29 +0200 Subject: [PATCH] net/ena/base: fix doorbell evaluation for LLQ This patch adds a missing LLQ-related check in the ena_com_is_doorbell_needed() routine, which is relevant for the feature supported by the next generation HW of the ENA. Fixes: b2b02edeb0d6 ("net/ena/base: upgrade HAL for new HW features") CC: stable@dpdk.org Signed-off-by: Michal Krawczyk Signed-off-by: Artur Rojek --- drivers/net/ena/base/ena_eth_com.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ena/base/ena_eth_com.h b/drivers/net/ena/base/ena_eth_com.h index e37b642d4c..3d66237b8d 100644 --- a/drivers/net/ena/base/ena_eth_com.h +++ b/drivers/net/ena/base/ena_eth_com.h @@ -133,7 +133,8 @@ static inline bool ena_com_is_doorbell_needed(struct ena_com_io_sq *io_sq, llq_info = &io_sq->llq_info; num_descs = ena_tx_ctx->num_bufs; - if (unlikely(ena_com_meta_desc_changed(io_sq, ena_tx_ctx))) + if (llq_info->disable_meta_caching || + unlikely(ena_com_meta_desc_changed(io_sq, ena_tx_ctx))) ++num_descs; if (num_descs > llq_info->descs_num_before_header) { -- 2.20.1