]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: Don't call kmap() on page allocated with GFP_ATOMIC
authorFabio M. De Francesco <fmdefrancesco@gmail.com>
Mon, 4 Jul 2022 14:01:29 +0000 (16:01 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 18 Aug 2022 15:53:31 +0000 (08:53 -0700)
commite089cdbf372fc8d1cb4acbda22cac38369a4243b
tree8479e35c63e4f72e4706d0c99060d2fe44ffa867
parentc6dd110c2a8b57abd88f2acb792ad530f635d380
ixgbe: Don't call kmap() on page allocated with GFP_ATOMIC

Pages allocated with GFP_ATOMIC cannot come from Highmem. This is why
there is no need to call kmap() on them.

Therefore, don't call kmap() on rx_buffer->page() and instead use a
plain page_address() to get the kernel address.

Suggested-by: Ira Weiny <ira.weiny@intel.com>
Suggested-by: Alexander Duyck <alexander.duyck@gmail.com>
Signed-off-by: Fabio M. De Francesco <fmdefrancesco@gmail.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Alexander Duyck <alexanderduyck@fb.com>
Tested-by: Gurucharan <gurucharanx.g@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c