net/qede/base: add API to update FW RSS indirection table
[dpdk.git] / drivers / net / qede / base / ecore_l2_api.h
index bde825c..21595f3 100644 (file)
@@ -470,4 +470,28 @@ ecore_configure_rfs_ntuple_filter(struct ecore_hwfn *p_hwfn,
                                  dma_addr_t p_addr, u16 length,
                                  u16 qid, u8 vport_id,
                                  bool b_is_add);
+
+/**
+ * @brief - ecore_update_eth_rss_ind_table_entry
+ *
+ * This function being used to update RSS indirection table entry to FW RAM
+ * instead of using the SP vport update ramrod with rss params.
+ *
+ * Notice:
+ * This function supports only one outstanding command per engine. Ecore
+ * clients which use this function should call ecore_mcp_ind_table_lock() prior
+ * to it and ecore_mcp_ind_table_unlock() after it.
+ *
+ * @params p_hwfn
+ * @params vport_id
+ * @params ind_table_index
+ * @params ind_table_value
+ *
+ * @return enum _ecore_status_t
+ */
+enum _ecore_status_t
+ecore_update_eth_rss_ind_table_entry(struct ecore_hwfn *p_hwfn,
+                                    u8 vport_id,
+                                    u8 ind_table_index,
+                                    u16 ind_table_value);
 #endif