Skip to content

Commit c6ddfb9

Browse files
madalinbucurdavem330
authored andcommitted
dpaa_eth: NETIF_F_LLTX requires to do our own update of trans_start
As txq_trans_update() only updates trans_start when the lock is held, trans_start does not get updated if NETIF_F_LLTX is declared. Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 28c1382 commit c6ddfb9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/net/ethernet/freescale/dpaa/dpaa_eth.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2051,6 +2051,7 @@ dpaa_start_xmit(struct sk_buff *skb, struct net_device *net_dev)
20512051
bool nonlinear = skb_is_nonlinear(skb);
20522052
struct rtnl_link_stats64 *percpu_stats;
20532053
struct dpaa_percpu_priv *percpu_priv;
2054+
struct netdev_queue *txq;
20542055
struct dpaa_priv *priv;
20552056
struct qm_fd fd;
20562057
int offset = 0;
@@ -2100,6 +2101,11 @@ dpaa_start_xmit(struct sk_buff *skb, struct net_device *net_dev)
21002101
if (unlikely(err < 0))
21012102
goto skb_to_fd_failed;
21022103

2104+
txq = netdev_get_tx_queue(net_dev, queue_mapping);
2105+
2106+
/* LLTX requires to do our own update of trans_start */
2107+
txq->trans_start = jiffies;
2108+
21032109
if (priv->tx_tstamp && skb_shinfo(skb)->tx_flags & SKBTX_HW_TSTAMP) {
21042110
fd.cmd |= cpu_to_be32(FM_FD_CMD_UPD);
21052111
skb_shinfo(skb)->tx_flags |= SKBTX_IN_PROGRESS;

0 commit comments

Comments
 (0)