From patchwork Tue Jun 27 13:58:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 9811723 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C1E4D603D7 for ; Tue, 27 Jun 2017 14:00:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B495428595 for ; Tue, 27 Jun 2017 14:00:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A8556285ED; Tue, 27 Jun 2017 14:00:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3DB4428595 for ; Tue, 27 Jun 2017 14:00:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751696AbdF0OAD (ORCPT ); Tue, 27 Jun 2017 10:00:03 -0400 Received: from mail-lf0-f46.google.com ([209.85.215.46]:34456 "EHLO mail-lf0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751531AbdF0N7A (ORCPT ); Tue, 27 Jun 2017 09:59:00 -0400 Received: by mail-lf0-f46.google.com with SMTP id l13so17733117lfl.1 for ; Tue, 27 Jun 2017 06:59:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=g/BsxfEog/0Y4d2SxVuIqGt/6t+6tDlNz3SCJAdZUAw=; b=CkDj7BW89+rpq5UMo3ROsLg2FKf1FlfKqI0fy09vZEdEhYtz/wf821f3Lyfsh8x308 diMXjT0NVkEZjxjlXLGL8odgwM1B3bzsy45uRQDa9DpOxcGVCxzYV9fVxbrt/PwDCtA2 WdEbJEyRw244NRCMXgCdl38r5lvzjfWXNKBgc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=g/BsxfEog/0Y4d2SxVuIqGt/6t+6tDlNz3SCJAdZUAw=; b=pfjm7hzf5wfElSUQPPa8e1RSb+02tGCHChSkPZd9RZLM7noJ3Sv+Xvmdpo02obAvm+ m98FL2a5b/idk2S59vVNC/coxtl9qZbx5zOYXW99W3B3UbnoU6xM39ZWq2oA9/By4pH1 eRgxmv/fgJvDNvXoxjWsobZddw/wqvl/u0hQ4D3jr0GhMozUAx4Xks5V32MRtX4HhFyS LNmYsN8qknJEe65RHYL9Bm/VcO1SRY1w5vvvTezJmPrRAR53wfGEjtpfoRMZ4aAU6wfz 4UONFNUxwbHGL9F7WVGvd8S0JCc5IB05e6V1A5N5Ii+cJ2BKvMACj5jnrMAsLTcG0yTh lcZQ== X-Gm-Message-State: AKS2vOyB2F5HGuNhO3D3XORIRxr55zL9B+dDGZ+XBSyIT4tcXIfuFjw1 t9kYNGc1hXBMj6Qq X-Received: by 10.25.79.25 with SMTP id d25mr1850369lfb.133.1498571939304; Tue, 27 Jun 2017 06:58:59 -0700 (PDT) Received: from localhost.localdomain (183-224-132-95.pool.ukrtel.net. [95.132.224.183]) by smtp.gmail.com with ESMTPSA id m29sm670836ljb.26.2017.06.27.06.58.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 27 Jun 2017 06:58:58 -0700 (PDT) From: Ivan Khoronzhuk To: m-karicheri2@ti.com, w-kwok2@ti.com Cc: grygorii.strashko@ti.com, linux-omap@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Ivan Khoronzhuk Subject: [PATCH net-next 1/3] net: ethernet: ti: cpsw: move skb timestamp to packet_submit Date: Tue, 27 Jun 2017 16:58:51 +0300 Message-Id: <1498571933-3663-2-git-send-email-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1498571933-3663-1-git-send-email-ivan.khoronzhuk@linaro.org> References: <1498571933-3663-1-git-send-email-ivan.khoronzhuk@linaro.org> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Move sw timestamp function close to channel submit function. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index b7a0f5e..422994e 100644 --- a/drivers/net/ethernet/ti/cpsw.c +++ b/drivers/net/ethernet/ti/cpsw.c @@ -1236,6 +1236,7 @@ static inline int cpsw_tx_packet_submit(struct cpsw_priv *priv, { struct cpsw_common *cpsw = priv->cpsw; + skb_tx_timestamp(skb); return cpdma_chan_submit(txch, skb, skb->data, skb->len, priv->emac_port + cpsw->data.dual_emac); } @@ -1611,8 +1612,6 @@ static netdev_tx_t cpsw_ndo_start_xmit(struct sk_buff *skb, cpts_is_tx_enabled(cpsw->cpts)) skb_shinfo(skb)->tx_flags |= SKBTX_IN_PROGRESS; - skb_tx_timestamp(skb); - q_idx = skb_get_queue_mapping(skb); if (q_idx >= cpsw->tx_ch_num) q_idx = q_idx % cpsw->tx_ch_num;