generic: provide get_port_stats() on ar8xxx switches
[openwrt/openwrt.git] / target / linux / generic / files / drivers / net / phy / ar8216.h
index d9508b9ff83c4c3d75978ae86546705660661a7f..321eeb79231fbf8a50296c01feb5208d9eacc5a1 100644 (file)
@@ -566,6 +566,9 @@ ar8xxx_sw_set_flush_port_arl_table(struct switch_dev *dev,
                                   const struct switch_attr *attr,
                                   struct switch_val *val);
 int
+ar8xxx_sw_get_port_stats(struct switch_dev *dev, int port,
+                       struct switch_port_stats *stats);
+int
 ar8216_wait_bit(struct ar8xxx_priv *priv, int reg, u32 mask, u32 val);
 
 static inline struct ar8xxx_priv *