commit | 947c54c395cb8368abebf3bec1413123d5dd4339 | [log] [tgz] |
---|---|---|
author | Shay Agroskin <shayagr@amazon.com> | Tue Jun 08 19:01:17 2021 +0300 |
committer | David S. Miller <davem@davemloft.net> | Tue Jun 08 14:41:10 2021 -0700 |
tree | 5babbd1c71fb940c25a1897bda1c0878184f11cb | |
parent | 9e8afb05961147509181baf4de5cbd644757e850 [diff] |
net: ena: Use dev_alloc() in RX buffer allocation Use dev_alloc() when allocating RX buffers instead of specifying the allocation flags explicitly. This result in same behaviour with less code. Also move the page allocation and its DMA mapping into a function. This creates a logical block, which may help understanding the code. Signed-off-by: Shay Agroskin <shayagr@amazon.com> Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>