Messages in this thread | | | Date | Thu, 29 Jun 2023 15:49:52 +0300 | From | Vladimir Oltean <> | Subject | Re: [net-next PATCH RFC] net: dsa: qca8k: make learning configurable and keep off if standalone |
| |
On Wed, Jun 28, 2023 at 02:53:35AM +0200, Christian Marangi wrote: > Also sorry for the double email... I forgot to add that it seems I need > to add a sleep 1 right after > > mc_route_prepare $h1 > mc_route_prepare $rcv_if_name > > in local_termination.sh. Think the switch needs some time to enable all > the port. Without the sleep 1 the first test just fails.
This makes sense. Those multicast MAC addresses are synced to DSA through dsa_slave_set_rx_mode() -> dsa_slave_sync_mc(). Notice that the calling context is atomic, so the implementation sets up a deferred work item for later. So user space is allowed to return from the syscall before the hardware is actually reprogrammed.
| |