]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit61610be93939a49a3b84c7583e67e41aa40ecf21
tree32adf612fe97ed68e03b0a80d2abb63a93887e0c
parentcc1dd3f379cba620d051edf0de23adb156862c72
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