Skip to content

Commit 98fdd85

Browse files
ikhorndavem330
authored andcommitted
net: ethernet: ti: cpsw: move skb timestamp to packet_submit
Move sw timestamp function close to channel submit function. Signed-off-by: Ivan Khoronzhuk <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent bf24e13 commit 98fdd85

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/net/ethernet/ti/cpsw.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1236,6 +1236,7 @@ static inline int cpsw_tx_packet_submit(struct cpsw_priv *priv,
12361236
{
12371237
struct cpsw_common *cpsw = priv->cpsw;
12381238

1239+
skb_tx_timestamp(skb);
12391240
return cpdma_chan_submit(txch, skb, skb->data, skb->len,
12401241
priv->emac_port + cpsw->data.dual_emac);
12411242
}
@@ -1611,8 +1612,6 @@ static netdev_tx_t cpsw_ndo_start_xmit(struct sk_buff *skb,
16111612
cpts_is_tx_enabled(cpsw->cpts))
16121613
skb_shinfo(skb)->tx_flags |= SKBTX_IN_PROGRESS;
16131614

1614-
skb_tx_timestamp(skb);
1615-
16161615
q_idx = skb_get_queue_mapping(skb);
16171616
if (q_idx >= cpsw->tx_ch_num)
16181617
q_idx = q_idx % cpsw->tx_ch_num;

0 commit comments

Comments
 (0)