net: nvethernet: Allow driver to be built without NVPPS

The nvethernet driver has a dependency on the NVPPS driver which in
turn has a dependency on the GTE driver. The GTE driver is being
transitioned to the new upstream HTE driver and while this transition is
on-going, allow the nvethernet driver to be distributed and built
without NVPPS and GTE.

Note that by default the dependency on the NVPPS driver is enabled by
setting CONFIG_TEGRA_NVPPS to 'y'. Only if the user sets
CONFIG_TEGRA_NVPPS to 'n' will it be disabled.

Bug 3918941
Bug 3961133

Change-Id: I019e5ebfddfcb158b0a684d2eacc404231577166
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2913273
Reviewed-by: Revanth Kumar Uppala <ruppala@nvidia.com>
Reviewed-by: Bhadram Varka <vbhadram@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Jon Hunter
2023-05-31 11:52:24 +01:00
committed by mobile promotions
parent de1bf0e728
commit 6475ddcf3d
3 changed files with 13 additions and 1 deletions

View File

@@ -2912,8 +2912,10 @@ static int ether_close(struct net_device *ndev)
/* TODO: purge the queues */
#endif
#if CONFIG_TEGRA_NVPPS
/* Unregister broadcasting MAC timestamp to clients */
tegra_unregister_hwtime_source(ndev);
#endif
/* Stop workqueue to get further scheduled */
ether_stats_work_queue_stop(pdata);