]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
net:ethernet:aquantia: Reset is_gso flag when EOP reached.
authorPavel Belous <pavel.belous@aquantia.com>
Thu, 23 Mar 2017 11:19:45 +0000 (14:19 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Mar 2017 19:32:19 +0000 (12:32 -0700)
We need to reset is_gso flag when EOP reached (entire LSO packet processed).

Fixes: bab6de8fd180 ("net: ethernet: aquantia:
 Atlantic A0 and B0 specific functions.")

Signed-off-by: Pavel Belous <pavel.belous@aquantia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c

index a536875a7d0dce2458a635c0c14930b2d3166dba..4ee15ff06a448b72dbd6763427d9d02dfadad268 100644 (file)
@@ -461,6 +461,7 @@ static int hw_atl_a0_hw_ring_tx_xmit(struct aq_hw_s *self,
                        if (unlikely(buff->is_eop)) {
                                txd->ctl |= HW_ATL_A0_TXD_CTL_EOP;
                                txd->ctl |= HW_ATL_A0_TXD_CTL_CMD_WB;
+                               is_gso = false;
                        }
                }
 
index 69488c9b03e21d3154d69a839368ae2878232e0c..42150708191dbf67d91b33218a2a275e9b5fd45d 100644 (file)
@@ -499,6 +499,7 @@ static int hw_atl_b0_hw_ring_tx_xmit(struct aq_hw_s *self,
                        if (unlikely(buff->is_eop)) {
                                txd->ctl |= HW_ATL_B0_TXD_CTL_EOP;
                                txd->ctl |= HW_ATL_B0_TXD_CTL_CMD_WB;
+                               is_gso = false;
                        }
                }