net/i40e: fix parsing packet type for NEON
[dpdk.git] / drivers / net / ena / base / ena_eth_com.h
index e37b642..7dda16c 100644 (file)
@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: BSD-3-Clause
- * Copyright (c) 2015-2019 Amazon.com, Inc. or its affiliates.
+ * Copyright (c) 2015-2020 Amazon.com, Inc. or its affiliates.
  * All rights reserved.
  */
 
@@ -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) {