]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/ena/base/ena_eth_com.h
net/i40e: fix parsing packet type for NEON
[dpdk.git] / drivers / net / ena / base / ena_eth_com.h
index e37b642d4c12115105d19aa25748ac1fc9f30cdb..7dda16cd9f500c4d1daeeb70ca11cda3e50979b4 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) {