ethdev: remove old close behaviour
[dpdk.git] / drivers / net / dpaa2 / dpaa2_ethdev.h
index 030c625..e577355 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: BSD-3-Clause
  *
  *   Copyright (c) 2015-2016 Freescale Semiconductor, Inc. All rights reserved.
- *   Copyright 2016-2019 NXP
+ *   Copyright 2016-2020 NXP
  *
  */
 
@@ -91,7 +91,7 @@
 #define DPAA2_PKT_TYPE_VLAN_2          0x0260
 
 /* enable timestamp in mbuf*/
-extern enum pmd_dpaa2_ts dpaa2_enable_ts;
+extern bool dpaa2_enable_ts[];
 
 #define DPAA2_QOS_TABLE_RECONFIGURE    1
 #define DPAA2_FS_TABLE_RECONFIGURE     2
@@ -99,6 +99,7 @@ extern enum pmd_dpaa2_ts dpaa2_enable_ts;
 #define DPAA2_QOS_TABLE_IPADDR_EXTRACT 4
 #define DPAA2_FS_TABLE_IPADDR_EXTRACT 8
 
+#define DPAA2_FLOW_MAX_KEY_SIZE                16
 
 /*Externaly defined*/
 extern const struct rte_flow_ops dpaa2_flow_ops;
@@ -145,6 +146,9 @@ struct dpaa2_dev_priv {
        uint8_t max_mac_filters;
        uint8_t max_vlan_filters;
        uint8_t num_rx_tc;
+       uint16_t qos_entries;
+       uint16_t fs_entries;
+       uint8_t dist_queues;
        uint8_t flags; /*dpaa2 config flags */
        uint8_t en_ordered;
        uint8_t en_loose_ordered;
@@ -152,8 +156,6 @@ struct dpaa2_dev_priv {
        uint8_t cgid_in_use[MAX_RX_QUEUES];
 
        struct extract_s extract;
-       uint8_t *qos_index;
-       uint8_t *fs_index;
 
        uint16_t ss_offset;
        uint64_t ss_iova;
@@ -178,7 +180,7 @@ int dpaa2_distset_to_dpkg_profile_cfg(uint64_t req_dist_set,
                                      struct dpkg_profile_cfg *kg_cfg);
 
 int dpaa2_setup_flow_dist(struct rte_eth_dev *eth_dev,
-                         uint64_t req_dist_set);
+               uint64_t req_dist_set, int tc_index);
 
 int dpaa2_remove_flow_dist(struct rte_eth_dev *eth_dev,
                           uint8_t tc_index);