summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/i40evf/i40evf_main.c
diff options
context:
space:
mode:
authorAlexander Duyck <alexander.h.duyck@intel.com>2016-09-06 18:05:04 -0700
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2016-09-22 22:33:41 -0700
commit841493a3f64395b60554afbcaa17f4350f90e764 (patch)
tree99c5382994464f7ea815e17392f38723fd6025fe /drivers/net/ethernet/intel/i40evf/i40evf_main.c
parentcb130a0b41d2a825fa48d7dfc964f08da9ccbb96 (diff)
downloadtalos-op-linux-841493a3f64395b60554afbcaa17f4350f90e764.tar.gz
talos-op-linux-841493a3f64395b60554afbcaa17f4350f90e764.zip
i40e: Limit TX descriptor count in cases where frag size is greater than 16K
The i40e driver was incorrectly assuming that we would always be pulling no more than 1 descriptor from each fragment. It is in fact possible for us to end up with the case where 2 descriptors worth of data may be pulled when a frame is larger than one of the pieces generated when aligning the payload to either 4K or pieces smaller than 16K. To adjust for this we just need to make certain to test all the way to the end of the fragments as it is possible for us to span 2 descriptors in the block before us so we need to guarantee that even the last 6 descriptors have enough data to fill a full frame. Change-ID: Ic2ecb4d6b745f447d334e66c14002152f50e2f99 Signed-off-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>
Diffstat (limited to 'drivers/net/ethernet/intel/i40evf/i40evf_main.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud