]> git.baikalelectronics.ru Git - kernel.git/commit
r8169: improve rtl_get_coalesce
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 30 Apr 2020 19:56:58 +0000 (21:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 May 2020 00:39:15 +0000 (17:39 -0700)
commit14023564320d83319fa94c4b38d1a78e951b3917
treec977eef0eee65f631a407f7188141076c57cb107
parentb7b881b2faa9e7cbe14e7c27663daa9056342365
r8169: improve rtl_get_coalesce

Use FIELD_GET() macro to make the code better readable. In addition
change the logic to round the time limit up, not down. Reason is that
a time limit <1us would be rounded to 0 currently, what would be
interpreted as "no time limit set".

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