net/mlx5: add C++ include guard to public header
[dpdk.git] / drivers / net / hns3 / hns3_rxtx.h
index 33ee8c6..094b65b 100644 (file)
@@ -318,7 +318,7 @@ struct hns3_rx_queue {
         * should not be transitted to the upper-layer application. For hardware
         * network engine whose vlan mode is HNS3_HW_SHIFT_AND_DISCARD_MODE,
         * such as kunpeng 930, PVID will not be reported to the BDs. So, PMD
-        * driver does not need to perform PVID-related operation in Rx. At this
+        * does not need to perform PVID-related operation in Rx. At this
         * point, the pvid_sw_discard_en will be false.
         */
        uint8_t pvid_sw_discard_en:1;
@@ -344,7 +344,6 @@ struct hns3_rx_queue {
 
        struct rte_mbuf fake_mbuf; /* fake mbuf used with vector rx */
 
-
        /*
         * The following fields are not accessed in the I/O path, so they are
         * placed at the end.
@@ -490,11 +489,13 @@ struct hns3_tx_queue {
         * PVID will overwrite the outer VLAN field of Tx BD. For the hardware
         * network engine whose vlan mode is HNS3_HW_SHIFT_AND_DISCARD_MODE,
         * such as kunpeng 930, if the PVID is set, the hardware will shift the
-        * VLAN field automatically. So, PMD driver does not need to do
+        * VLAN field automatically. So, PMD does not need to do
         * PVID-related operations in Tx. And pvid_sw_shift_en will be false at
         * this point.
         */
        uint16_t pvid_sw_shift_en:1;
+       /* check whether the mbuf fast free offload is enabled */
+       uint16_t mbuf_fast_free_en:1;
 
        /*
         * For better performance in tx datapath, releasing mbuf in batches is
@@ -516,7 +517,6 @@ struct hns3_tx_queue {
        struct hns3_tx_basic_stats basic_stats;
        struct hns3_tx_dfx_stats dfx_stats;
 
-
        /*
         * The following fields are not accessed in the I/O path, so they are
         * placed at the end.
@@ -609,7 +609,7 @@ hns3_handle_bdinfo(struct hns3_rx_queue *rxq, struct rte_mbuf *rxm,
 
        /*
         * If packet len bigger than mtu when recv with no-scattered algorithm,
-        * the first n bd will without FE bit, we need process this sisution.
+        * the first n bd will without FE bit, we need process this situation.
         * Note: we don't need add statistic counter because latest BD which
         *       with FE bit will mark HNS3_RXD_L2E_B bit.
         */
@@ -711,7 +711,6 @@ uint16_t hns3_recv_pkts_vec_sve(void *rx_queue, struct rte_mbuf **rx_pkts,
 int hns3_rx_burst_mode_get(struct rte_eth_dev *dev,
                           __rte_unused uint16_t queue_id,
                           struct rte_eth_burst_mode *mode);
-int hns3_rx_check_vec_support(struct rte_eth_dev *dev);
 uint16_t hns3_prep_pkts(__rte_unused void *tx_queue, struct rte_mbuf **tx_pkts,
                        uint16_t nb_pkts);
 uint16_t hns3_xmit_pkts_simple(void *tx_queue, struct rte_mbuf **tx_pkts,