r8169: allocate rx buffers using alloc_pages_node
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 7 Aug 2019 19:38:22 +0000 (21:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Aug 2019 05:34:55 +0000 (22:34 -0700)
commit32879f000120fead7cbd4a9aacbda95c84c6b287
treeb0bcbc3a4fba010fc84cd14d4c4dab24a6d16710
parent018e5b458723d04cbeadbc3f0e06eba85798f427
r8169: allocate rx buffers using alloc_pages_node

We allocate 16kb per rx buffer, so we can avoid some overhead by using
alloc_pages_node directly instead of bothering kmalloc_node. Due to
this change buffers are page-aligned now, therefore the alignment check
can be removed.

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