]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i40e: fix bug in dma sync
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Mon, 4 Jan 2016 18:33:03 +0000 (10:33 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 10 Mar 2016 16:37:08 +0000 (08:37 -0800)
commitd330e77ec8c1403918cdbb53167b7b0a2cb1d0dd
treed2589c6244f28801b396a606c4c5729555e7d60e
parent756c8e5469633ab97badcd38091819ffdcfc0a7c
i40e: fix bug in dma sync

Orabug: 22342532

Driver was using an offset based off a DMA handle while mapping and
unmapping using sync_single_range_for[cpu|device], where it should
be using DMA handle (returned from alloc_coherent) and the offset of the
memory to be sync'd.

Change-ID: I208256565b1595ff0e9171ab852de06b997917c6
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Reviewed-by: Nelson, Shannon <shannon.nelson@intel.com>
Reviewed-by: Williams, Mitch A <mitch.a.williams@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit 3578fa0a8cd6d9fb03092c673f42aad0e7c850df)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_txrx.c
drivers/net/ethernet/intel/i40evf/i40e_txrx.c