generic: provide get_port_stats() on rtl836x switches
[openwrt/staging/kaloz.git] / target / linux / generic / files / drivers / net / phy / rtl8366_smi.h
index bd41385bed1a57f270fa3d270c72d6747cb8b7a4..4bb9e9a66eea93426f7f60c71b76b051e9774d8c 100644 (file)
@@ -146,6 +146,9 @@ int rtl8366_sw_get_vlan_enable(struct switch_dev *dev,
 int rtl8366_sw_set_vlan_enable(struct switch_dev *dev,
                               const struct switch_attr *attr,
                               struct switch_val *val);
+int rtl8366_sw_get_port_stats(struct switch_dev *dev, int port,
+                               struct switch_port_stats *stats,
+                               int txb_id, int rxb_id);
 
 struct rtl8366_smi* rtl8366_smi_probe(struct platform_device *pdev);