i40e/i40evf: Do not write to descriptor unless we complete
authorAlexander Duyck <aduyck@mirantis.com>
Mon, 25 Jan 2016 05:17:01 +0000 (21:17 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 18 Feb 2016 19:00:56 +0000 (11:00 -0800)
commit475b4205aa52c16feef08d55c8fd76e815b6bee7
tree32adf612fe97ed68e03b0a80d2abb63a93887e0c
parenta3fd9d8876a589f05725237aced606b995956860
i40e/i40evf: Do not write to descriptor unless we complete

This patch defers writing to the Tx descriptor bits until we know we have
successfully completed a given operation.  So for example we defer updating
the tunnelling portion of the context descriptor until we have fully
identified the type.

The advantage to this approach is that we can assemble values as we go
instead of having to try and kludge everything together all at once.  As a
result we can significantly clean up the tunneling configuration for
instance as we can just do a pointer walk and do the math for the distance
between each set of points.

Signed-off-by: Alexander Duyck <aduyck@mirantis.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_txrx.c
drivers/net/ethernet/intel/i40evf/i40e_txrx.c
This page took 0.027317 seconds and 5 git commands to generate.