]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
i40e: Change size to truesize when using i40e_rx_buffer_flip()
authorTirthendu Sarkar <tirthendu.sarkar@intel.com>
Thu, 9 Mar 2023 18:56:11 +0000 (00:26 +0530)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 9 Mar 2023 21:11:09 +0000 (13:11 -0800)
commit03e88c8a791c0655ddea07fd4c7cd6cb16087c8f
tree2ae0f3515f4baa7d0564bc55d9873003472cafb1
parente2843f037127c3a9db26718aaa293d2a8e5881e4
i40e: Change size to truesize when using i40e_rx_buffer_flip()

Truesize is now passed directly to i40e_rx_buffer_flip() instead of size
so that it does not need to recalculate truesize from size using
i40e_rx_frame_truesize() before adjusting page offset.

With these change the function can now be used during skb building and
adding frags. In later patches it will also be easier for adjusting
page offsets for multi-buffers.

Signed-off-by: Tirthendu Sarkar <tirthendu.sarkar@intel.com>
Tested-by: Chandan Kumar Rout <chandanx.rout@intel.com> (A Contingent Worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/i40e/i40e_txrx.c