[PATCH net-next 26/40] net: fec: set cbd_esc only once
Troy Kisky
troy.kisky at boundarydevices.com
Thu Jan 28 13:25:50 PST 2016
Signed-off-by: Troy Kisky <troy.kisky at boundarydevices.com>
---
drivers/net/ethernet/freescale/fec_main.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c
index 380c8e2..cf53e21 100644
--- a/drivers/net/ethernet/freescale/fec_main.c
+++ b/drivers/net/ethernet/freescale/fec_main.c
@@ -569,6 +569,8 @@ fec_enet_txq_put_data_tso(struct fec_enet_priv_tx_q *txq, struct sk_buff *skb,
estatus |= FEC_TX_BD_FTYPE(txq->bd.qid);
if (skb->ip_summed == CHECKSUM_PARTIAL)
estatus |= BD_ENET_TX_PINS | BD_ENET_TX_IINS;
+ if (is_last)
+ estatus |= BD_ENET_TX_INT;
ebdp->cbd_bdu = 0;
ebdp->cbd_esc = estatus;
}
@@ -576,12 +578,8 @@ fec_enet_txq_put_data_tso(struct fec_enet_priv_tx_q *txq, struct sk_buff *skb,
/* Handle the last BD specially */
if (last_tcp)
status |= (BD_ENET_TX_LAST | BD_ENET_TX_TC);
- if (is_last) {
+ if (is_last)
status |= BD_ENET_TX_INTR;
- if (fep->bufdesc_ex)
- ebdp->cbd_esc |= BD_ENET_TX_INT;
- }
-
bdp->cbd_sc = status;
return 0;
--
2.5.0
More information about the linux-arm-kernel
mailing list