summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/amazon/ena/ena_com.c
diff options
context:
space:
mode:
authorShay Agroskin <shayagr@amazon.com>2021-06-08 19:01:17 +0300
committerDavid S. Miller <davem@davemloft.net>2021-06-09 00:41:10 +0300
commit947c54c395cb8368abebf3bec1413123d5dd4339 (patch)
tree5babbd1c71fb940c25a1897bda1c0878184f11cb /drivers/net/ethernet/amazon/ena/ena_com.c
parent9e8afb05961147509181baf4de5cbd644757e850 (diff)
downloadlinux-947c54c395cb8368abebf3bec1413123d5dd4339.tar.xz
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>
Diffstat (limited to 'drivers/net/ethernet/amazon/ena/ena_com.c')
0 files changed, 0 insertions, 0 deletions