How do I restart ethernet after waking computer?

How do I restart ethernet after waking my Ubuntu 20.04 computer from sleep mode?

If I reboot, ethernet works fine, but I want to get ethernet working without rebooting.

"sudo service network-manager restart" doesn't restart ethernet. I get something saying there's a configuration error.

Thanks.

From sudo lshw -C network:

  *-network DISABLED        
       description: Ethernet interface
       product: QCA8171 Gigabit Ethernet
       vendor: Qualcomm Atheros

From sudo lspci:

08:00.0 Ethernet controller: Qualcomm Atheros QCA8171 Gigabit Ethernet (rev 10)

From sudo /etc/init.d/network-manager status:

Aug 13 20:34:28 IdeaPad NetworkManager[640]: <info>  [1628908468.8532] device (enp8s0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'managed')

First determine the module that controls your ethernet.
lspci -vvnn | grep -A 9 -i ethernet
An example might be...
Kernel driver in use: tg3
Kernel modules: tg3
Then use modprobe to turn tg3 or whatever yours is off and on again.
sudo modprobe -r tg3
sudo modprobe tg3