]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/axgbe/axgbe_ethdev.h
net/octeontx: support fast mbuf free
[dpdk.git] / drivers / net / axgbe / axgbe_ethdev.h
index 3969317fd9df95f97480fd84ccc72245500d5688..f10ec4a400bc1f3e68fa8219687b66bdfc5b568e 100644 (file)
@@ -486,6 +486,16 @@ struct axgbe_mmc_stats {
        uint64_t rxwatchdogerror;
 };
 
+/* Flow control parameters */
+struct xgbe_fc_info {
+       uint32_t high_water[AXGBE_PRIORITY_QUEUES];
+       uint32_t low_water[AXGBE_PRIORITY_QUEUES];
+       uint16_t pause_time[AXGBE_PRIORITY_QUEUES];
+       uint16_t send_xon;
+       enum rte_eth_fc_mode mode;
+       uint8_t autoneg;
+};
+
 /*
  * Structure to store private data for each port.
  */
@@ -577,6 +587,7 @@ struct axgbe_port {
        unsigned int rx_rfa[AXGBE_MAX_QUEUES];
        unsigned int rx_rfd[AXGBE_MAX_QUEUES];
        unsigned int fifo;
+       unsigned int pfc_map[AXGBE_MAX_QUEUES];
 
        /* Receive Side Scaling settings */
        u8 rss_key[AXGBE_RSS_HASH_KEY_SIZE];
@@ -626,6 +637,7 @@ struct axgbe_port {
        uint32_t rx_csum_enable;
 
        struct axgbe_mmc_stats mmc_stats;
+       struct xgbe_fc_info fc;
 
        /* Hash filtering */
        unsigned int hash_table_shift;