Björn Töpel 2aae918c7a i40e/i40evf: proper update of the page_offset field
In f8b45b74cc62 ("i40e/i40evf: Use build_skb to build frames")
i40e_build_skb updates the page_offset field with an incorrect offset,
which can lead to data corruption. This patch updates page_offset
correctly, by properly setting truesize.

Note that the bug only appears on architectures where PAGE_SIZE is
8192 or larger.

Fixes: f8b45b74cc62 ("i40e/i40evf: Use build_skb to build frames")
Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Acked-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2017-06-06 02:49:15 -07:00
..
2017-04-19 17:04:06 -07:00
2017-04-19 17:04:06 -07:00
2015-07-23 05:33:55 -07:00
2017-04-19 17:04:06 -07:00
2017-04-19 16:47:31 -07:00
2017-04-19 17:04:06 -07:00
2017-03-15 01:31:38 -07:00
2017-04-30 05:01:35 -07:00
2017-04-19 16:47:31 -07:00