]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_pmd_ixgbe/ixgbe/ixgbe_api.c
ixgbe/base: allow to read rtrup2tc register
[dpdk.git] / lib / librte_pmd_ixgbe / ixgbe / ixgbe_api.c
index 20c014cc60f69cd9e7b73d23788c8f089c4320e8..57869a7414af4c93bddd0dd5383a01012f9d1efc 100644 (file)
@@ -35,6 +35,19 @@ POSSIBILITY OF SUCH DAMAGE.
 #include "ixgbe_common.h"
 #ident "$Id: ixgbe_api.c,v 1.187 2012/11/08 10:11:52 jtkirshe Exp $"
 
+/**
+ * ixgbe_dcb_get_rtrup2tc - read rtrup2tc reg
+ * @hw: pointer to hardware structure
+ * @map: pointer to u8 arr for returning map
+ *
+ * Read the rtrup2tc HW register and resolve its content into map
+ **/
+void ixgbe_dcb_get_rtrup2tc(struct ixgbe_hw *hw, u8 *map)
+{
+       if (hw->mac.ops.get_rtrup2tc)
+               hw->mac.ops.get_rtrup2tc(hw, map);
+}
+
 /**
  *  ixgbe_init_shared_code - Initialize the shared code
  *  @hw: pointer to hardware structure