ralink: support change tx/rx ring size
[openwrt.git] / target / linux / ramips / files / drivers / net / ethernet / ralink / ralink_soc_eth.h
index 9d5ea0c..2ad5d01 100644 (file)
@@ -61,11 +61,7 @@ enum fe_work_flag {
 #define FE_DRV_VERSION         "0.1.2"
 
 /* power of 2 to let NEXT_TX_DESP_IDX work */
-#ifdef CONFIG_SOC_MT7621
-#define NUM_DMA_DESC           (1 << 9)
-#else
 #define NUM_DMA_DESC           (1 << 7)
-#endif
 #define MAX_DMA_DESC           0xfff
 
 #define FE_DELAY_EN_INT                0x80
@@ -493,6 +489,8 @@ struct fe_priv
        unsigned long                   vlan_map;
        struct work_struct              pending_work;
        DECLARE_BITMAP(pending_flags, FE_FLAG_MAX);
+       u16                             tx_ring_size;
+       u16                             rx_ring_size;
 };
 
 extern const struct of_device_id of_fe_match[];