dma4_txstart() puts a packet back on the queue and sets
IFF_DRV_OACTIVE when dma4_setup_txbuf() fails, expecting a transmit
completion to clear it and restart the queue. When no packet is in
flight there is no completion, and the transmit watchdog is not armed
either, so the interface stays stopped until it is initialized again.
The mapping fails when m_defrag() cannot allocate an mbuf or, since the
DMA is limited to the address width of the hardware, when no bounce
page is available.
Drop the packet and count it as an output error when nothing is in
flight, and keep the previous behavior otherwise.
Fixes: 9006a6ad1b30 ("dwc(4): Support a major update of Synopsys IP.")
Reported by: llm-postcr
Tested on: Quartz64 Model A (RK3568) with 8GB of RAM, with a scratch
kernel that fails the mapping of one packet on an empty ring: the transmit stopped without the change, with it the packet was counted as an output error and the traffic went on