]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 10 Mar 2016 16:37:38 +0000 (08:37 -0800)
commitac863c27b64e8696085be3b4dae7e19fa008a4b6
tree81cd2334bfa85dfcd2e07ff03bdfe2818de221f3
parent9c11ec2c7c7ff68b28d857685e3fbe3dc8ed38ec
i40e/i40evf: Do not write to descriptor unless we complete

Orabug: 22342532

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>
(cherry picked from commit 475b4205aa52c16feef08d55c8fd76e815b6bee7)
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