net: hns: add uc match for debug ports
[deliverable/linux.git] / drivers / net / ethernet / hisilicon / hns / hns_dsaf_mac.c
index 5ef0e96e918a7db7a74d8b1318ebc7035576c4e5..138737dff9f237cb1adc8f440edee9e12d52f88e 100644 (file)
@@ -861,6 +861,14 @@ int hns_mac_get_sset_count(struct hns_mac_cb *mac_cb, int stringset)
        return mac_ctrl_drv->get_sset_count(stringset);
 }
 
+void hns_mac_set_promisc(struct hns_mac_cb *mac_cb, u8 en)
+{
+       struct mac_driver *mac_ctrl_drv = hns_mac_get_drv(mac_cb);
+
+       if (mac_ctrl_drv->set_promiscuous)
+               mac_ctrl_drv->set_promiscuous(mac_ctrl_drv, en);
+}
+
 int hns_mac_get_regs_count(struct hns_mac_cb *mac_cb)
 {
        struct mac_driver *mac_ctrl_drv = hns_mac_get_drv(mac_cb);
This page took 0.030807 seconds and 5 git commands to generate.