Files
linux-nv-oot/drivers/net/ethernet/nvidia
Srinivas Ramachandran 05e0c8f037 driver: net: nvethernet: Re-order functions in ether_open()
Issue: In ether_open(), following issues are noted:
       1. ether_ptp_init() is called after starting MAC,
       which could cause some PTP packets to be missed.
       2. napi handlers are not enabled before requesting
       irq/starting MAC. This can cause issues if irq is
       raised immediately (if irq becomes shared in some
       platform) after it is requested.
       3. ether_request_irq() is called before DMA resources
       are initialized. This will also cause problem if irq
       is raised immediately.

Fix:   Move and re-order function invocations in ether_open()
       so that driver is ready to go (DMA resources allocated,
       napi handlers enabled etc.) by the time irq is requested/
       MAC is started for Rx/Tx.

Bug 2715330

Change-Id: I491251c8e749ccad2890ad0d113c87aaf3d87b42
Signed-off-by: Srinivas Ramachandran <srinivasra@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2211091
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
2022-11-01 14:27:07 +05:30
..
2022-10-18 11:24:42 -07:00