On 12/20/2020 8:53 PM, Florian Fainelli wrote: > > The call to netif_set_real_num_tx_queues() succeeds and > slave_dev->real_num_tx_queues is changed to 4 accordingly. The loop that > assigns the internal queue mapping (priv->ring_map) is correctly limited > to 4, however we get two calls per switch port instead of one. I did not > have much time to debug why we get called twice but I will be looking > into this tomorrow. There was not any bug other than there are two instances of a SYSTEMPORT device in my system and they both receive the same notification. So we do need to qualify which of the notifier block matches the device of interest, because if we do extract the private structure from the device being notified, it is always going to match. Incremental fixup here: https://github.com/ffainelli/linux/commit/0eea16e706a73c56a36d701df483ff73211aae7f and you can add Tested-by: Florian Fainelli <f.faine...@gmail.com> when you resubmit. Thanks, this is a really nice cleanup. -- Florian
Re: [RFC PATCH net-next 3/4] net: systemport: use standard netdevice notifier to detect DSA presence
- [RFC PATCH net-next 0/4] Reduce coupling between DSA and ... Vladimir Oltean
- [RFC PATCH net-next 1/4] net: dsa: move the Broadcom... Vladimir Oltean
- Re: [RFC PATCH net-next 1/4] net: dsa: move the ... Florian Fainelli
- [RFC PATCH net-next 4/4] net: dsa: remove the DSA sp... Vladimir Oltean
- Re: [RFC PATCH net-next 4/4] net: dsa: remove th... Florian Fainelli
- [RFC PATCH net-next 3/4] net: systemport: use standa... Vladimir Oltean
- Re: [RFC PATCH net-next 3/4] net: systemport: us... Florian Fainelli
- Re: [RFC PATCH net-next 3/4] net: systemport: us... Florian Fainelli
- Re: [RFC PATCH net-next 3/4] net: systemport... Vladimir Oltean
- Re: [RFC PATCH net-next 3/4] net: system... Florian Fainelli
- Re: [RFC PATCH net-next 3/4] net: s... Florian Fainelli
- Re: [RFC PATCH net-next 3/4] ne... Vladimir Oltean
- Re: [RFC PATCH net-next 3/4... Florian Fainelli
- Re: [RFC PATCH net-next 3/4... Vladimir Oltean
- [RFC PATCH net-next 2/4] net: dsa: export dsa_slave_... Vladimir Oltean
- Re: [RFC PATCH net-next 2/4] net: dsa: export ds... Florian Fainelli