r8169: remove nr_frags argument from rtl_tx_slots_avail
authorHeiner Kallweit <hkallweit1@gmail.com>
Mon, 16 Nov 2020 16:03:14 +0000 (17:03 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 17 Nov 2020 17:29:14 +0000 (09:29 -0800)
commit83c317d7b36bb3858cf1cb86d2635ec3f3bd6ea3
treeaa62fa0933f4edbe5ffafac0b129fbdcb62b2691
parentb618c327024997589051ea3605b38d1f7ce138a7
r8169: remove nr_frags argument from rtl_tx_slots_avail

The only time when nr_frags isn't SKB_MAX_FRAGS is when entering
rtl8169_start_xmit(). However we can use SKB_MAX_FRAGS also here
because when queue isn't stopped there should always be room for
MAX_SKB_FRAGS + 1 descriptors.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/3d1f2ad7-31d5-2cac-4f4a-394f8a3cab63@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/realtek/r8169_main.c