Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2391496a authored by Sunil Paidimarri's avatar Sunil Paidimarri Committed by Gerrit - the friendly Code Review server
Browse files

net: stmmac: Set IOC for every TSO last desc



Set IOC bit for eary last segment of TSO packets.

Change-Id: I87a1b8cbd6717b0e5d32f3bd5027b935178ca39d
Acked-by: default avatarRahul Kawadgave <rahulak@qti.qualcomm.com>
Signed-off-by: default avatarSunil Paidimarri <hisunil@codeaurora.org>
parent e26c537a
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2908,6 +2908,12 @@ static void stmmac_tso_allocator(struct stmmac_priv *priv, unsigned int des,
			(last_segment) && (tmp_len <= TSO_MAX_BUFF_SIZE),
			0, 0);

		if (last_segment && tmp_len <= TSO_MAX_BUFF_SIZE) {
			priv->tx_count_frames = 0;
			priv->hw->desc->set_tx_ic(desc);
			priv->xstats.tx_set_ic_bit++;
		}

		tmp_len -= TSO_MAX_BUFF_SIZE;
	}
}