r8169: use new macro netif_subqueue_maybe_stop in rtl8169_start_xmit
authorHeiner Kallweit <hkallweit1@gmail.com>
Mon, 17 Apr 2023 09:37:20 +0000 (11:37 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 18 Apr 2023 10:59:01 +0000 (12:59 +0200)
commit8624e9bbef641731e1b305c71187cb5dd63673ab
treef6baa3ef4b634a123045a94ec7e1f63fcf23af29
parentcb18e5595df7f4e01d0dd4a0f9c4e71b68ae351e
r8169: use new macro netif_subqueue_maybe_stop in rtl8169_start_xmit

Use new net core macro netif_subqueue_maybe_stop in the start_xmit path
to simplify the code. Whilst at it, set the tx queue start threshold to
twice the stop threshold. Before values were the same, resulting in
stopping/starting the queue more often than needed.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/realtek/r8169_main.c