]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/net/ethernet/hisilicon/hns/hnae.h
net: hns: add get_coalesce_range api for hns
[karo-tx-linux.git] / drivers / net / ethernet / hisilicon / hns / hnae.h
index 529cb1341270bf2398563fc38988ccd499674f81..962e445ee83fcaedfbdc705734b00a9860f6555e 100644 (file)
@@ -473,6 +473,11 @@ struct hnae_ae_ops {
        int (*set_coalesce_usecs)(struct hnae_handle *handle, u32 timeout);
        int (*set_coalesce_frames)(struct hnae_handle *handle,
                                   u32 coalesce_frames);
+       void (*get_coalesce_range)(struct hnae_handle *handle,
+                                  u32 *tx_frames_low, u32 *rx_frames_low,
+                                  u32 *tx_frames_high, u32 *rx_frames_high,
+                                  u32 *tx_usecs_low, u32 *rx_usecs_low,
+                                  u32 *tx_usecs_high, u32 *rx_usecs_high);
        void (*set_promisc_mode)(struct hnae_handle *handle, u32 en);
        int (*get_mac_addr)(struct hnae_handle *handle, void **p);
        int (*set_mac_addr)(struct hnae_handle *handle, void *p);