net/bnxt: update TruFlow core index table
[dpdk.git] / drivers / net / bnxt / tf_core / tf_device.h
index 31806bb..b43cfc6 100644 (file)
@@ -10,6 +10,9 @@
 #include "tf_identifier.h"
 #include "tf_tbl.h"
 #include "tf_tcam.h"
+#ifdef TF_TCAM_SHARED
+#include "tf_tcam_shared.h"
+#endif
 #include "tf_if_tbl.h"
 #include "tf_global_cfg.h"
 
@@ -136,7 +139,6 @@ struct tf_dev_ops {
                                       uint16_t resource_id,
                                       const char **resource_str);
 
-
        /**
         * Retrieves the WC TCAM slice information that the device
         * supports.
@@ -345,28 +347,6 @@ struct tf_dev_ops {
        int (*tf_dev_free_ext_tbl)(struct tf *tfp,
                                   struct tf_tbl_free_parms *parms);
 
-       /**
-        * Searches for the specified table type element in a shadow DB.
-        *
-        * This API searches for the specified table type element in a
-        * device specific shadow DB. If the element is found the
-        * reference count for the element is updated. If the element
-        * is not found a new element is allocated from the table type
-        * DB and then inserted into the shadow DB.
-        *
-        * [in] tfp
-        *   Pointer to TF handle
-        *
-        * [in] parms
-        *   Pointer to table allocation and search parameters
-        *
-        * Returns
-        *   - (0) if successful.
-        *   - (-EINVAL) on failure.
-        */
-       int (*tf_dev_alloc_search_tbl)(struct tf *tfp,
-                                      struct tf_tbl_alloc_search_parms *parms);
-
        /**
         * Sets the specified table type element.
         *
@@ -444,6 +424,23 @@ struct tf_dev_ops {
        int (*tf_dev_get_bulk_tbl)(struct tf *tfp,
                                   struct tf_tbl_get_bulk_parms *parms);
 
+       /**
+        * Gets the increment value to add to the shared session resource
+        * start offset by for each count in the "stride"
+        *
+        * [in] tfp
+        *   Pointer to TF handle
+        *
+        * [in] parms
+        *   Pointer to get shared tbl increment parameters
+        *
+        * Returns
+        *   - (0) if successful.
+        *   - (-EINVAL) on failure.
+        */
+       int (*tf_dev_get_shared_tbl_increment)(struct tf *tfp,
+                               struct tf_get_shared_tbl_increment_parms *parms);
+
        /**
         * Retrieves the table resource info.
         *
@@ -561,6 +558,41 @@ struct tf_dev_ops {
        int (*tf_dev_get_tcam)(struct tf *tfp,
                               struct tf_tcam_get_parms *parms);
 
+#ifdef TF_TCAM_SHARED
+       /**
+        * Move TCAM shared entries
+        *
+        * [in] tfp
+        *   Pointer to TF handle
+        *
+        * [in] parms
+        *   Pointer to parameters
+        *
+        *    returns:
+        *    0       - Success
+        *    -EINVAL - Error
+        */
+       int (*tf_dev_move_tcam)(struct tf *tfp,
+                              struct tf_move_tcam_shared_entries_parms *parms);
+
+       /**
+        * Move TCAM shared entries
+        *
+        * [in] tfp
+        *   Pointer to TF handle
+        *
+        * [in] parms
+        *   Pointer to parameters
+        *
+        *    returns:
+        *    0       - Success
+        *    -EINVAL - Error
+        */
+       int (*tf_dev_clear_tcam)(struct tf *tfp,
+                             struct tf_clear_tcam_shared_entries_parms *parms);
+
+#endif /* TF_TCAM_SHARED */
+
        /**
         * Retrieves the tcam resource info.
         *