Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 6838695e authored by Murali Karicheri's avatar Murali Karicheri
Browse files

net: hsr/prp: fix incorrect setting of promisc mode in hsr_del_port()


Currently when hsr/prp interface is deleted, hsr_del_port() doesn't
check if device is not offloaded before calling dev_set_promiscuity().
This patch fixes that by calling dev_set_promiscuity() only when
not offloaded

Signed-off-by: default avatarMurali Karicheri <m-karicheri2@ti.com>
parent a609ce3b
No related merge requests found
......@@ -218,7 +218,8 @@ void hsr_del_port(struct hsr_port *port)
dev_set_mtu(master->dev, hsr_get_max_mtu(hsr));
}
netdev_rx_handler_unregister(port->dev);
dev_set_promiscuity(port->dev, -1);
if (!port->hsr->rx_offloaded)
dev_set_promiscuity(port->dev, -1);
}
/* FIXME?
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment