]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
r8169: add check for invalid parameter combination in rtl_set_coalesce
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 30 Apr 2020 19:59:48 +0000 (21:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 May 2020 00:39:15 +0000 (17:39 -0700)
commit81496b72e9ba1999d4ed7bb7fa407a1edef020a4
tree5cc4206fb21ba30d22bf24248c14ccd8c2577b14
parent2b3e48b66516602d7d63142cda84b554f908eb54
r8169: add check for invalid parameter combination in rtl_set_coalesce

Realtek provided information about a HW constraint that time limit must
not be set to 0 if the frame limit is >0. Add a check for this and
reject invalid parameter combinations.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169_main.c