igb: Convert kmap() to kmap_local_page()
kmap() is being deprecated and these usages are all local to the thread so there is no reason kmap_local_page() can't be used. Replace kmap() calls with kmap_local_page(). Signed-off-by: Alaa Mohamed <eng.alaamohamedsoliman.am@gmail.com> Reviewed-by: Ira Weiny <ira.weiny@intel.com> Tested-by: Gurucharan <gurucharanx.g@intel.com> (A Contingent worker at Intel) Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
This commit is contained in:
parent
833fbbbbfc
commit
b35413f415
|
@ -1798,14 +1798,14 @@ static int igb_check_lbtest_frame(struct igb_rx_buffer *rx_buffer,
|
|||
|
||||
frame_size >>= 1;
|
||||
|
||||
data = kmap(rx_buffer->page);
|
||||
data = kmap_local_page(rx_buffer->page);
|
||||
|
||||
if (data[3] != 0xFF ||
|
||||
data[frame_size + 10] != 0xBE ||
|
||||
data[frame_size + 12] != 0xAF)
|
||||
match = false;
|
||||
|
||||
kunmap(rx_buffer->page);
|
||||
kunmap_local(data);
|
||||
|
||||
return match;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue