]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/bnxt/tf_core/tfp.h
net/bnxt: update resource allocation settings
[dpdk.git] / drivers / net / bnxt / tf_core / tfp.h
index fe49b63042943de663c6c7bbcf311cff7e96499b..421a7d9f78f910674529c12e2d6ff8a9c44c5262 100644 (file)
@@ -170,6 +170,21 @@ int
 tfp_msg_hwrm_oem_cmd(struct tf *tfp,
                     uint32_t max_flows);
 
+/**
+ * Sends OEM command message to Chimp
+ *
+ * [in] session, pointer to session handle
+ * [in] max_flows, max number of flows requested
+ *
+ * Returns:
+ *   0              - Success
+ *   -1             - Global error like not supported
+ *   -EINVAL        - Parameter Error
+ */
+int
+tfp_msg_hwrm_oem_cmd(struct tf *tfp,
+                    uint32_t max_flows);
+
 /**
  * Allocates zero'ed memory from the heap.
  *
@@ -238,4 +253,19 @@ int tfp_get_fid(struct tf *tfp, uint16_t *fw_fid);
 #define tfp_bswap_32(val) rte_bswap32(val)
 #define tfp_bswap_64(val) rte_bswap64(val)
 
+/**
+ * Lookup of the FID in the platform specific structure.
+ *
+ * [in] session
+ *   Pointer to session handle
+ *
+ * [out] fw_fid
+ *   Pointer to the fw_fid
+ *
+ * Returns:
+ *   0       - Success
+ *   -EINVAL - Parameter error
+ */
+int tfp_get_fid(struct tf *tfp, uint16_t *fw_fid);
+
 #endif /* _TFP_H_ */