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: 106440 Delivered-To: patch@linaro.org Received: by 10.140.101.48 with SMTP id t45csp1234696qge; Tue, 27 Jun 2017 07:00:05 -0700 (PDT) X-Received: by 10.99.60.68 with SMTP id i4mr5538862pgn.250.1498572005524; Tue, 27 Jun 2017 07:00:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498572005; cv=none; d=google.com; s=arc-20160816; b=FPCyhszLwnrSbXX3GXqrm9QkT+qIvXWfchOBSM04Otz91hFyB1rjCPNGq/SLHFVD80 tlhibq8BtD+cR9eJGBbq1EWG5NuWJKUQ66cCVrB+YkNr56XAqCfEwPto62jVDK3km5pq 05IdP7B9vxD8OnSA5OKVhP9lBpxH/4scya8JJWREtWTYRqfBkH9/3OYztdXH1fJu+d6m ZtAwoWsCqxc1642TOeZmwoPpnIOwCiupK9DH7CDDqKiXhZjB5lUoMZjMxL3vGqERMQ22 tbGOJSfTPt3qLyAnwRg0tQMmYMOtMIDyl5vC4t3IvOlSiAVk9rPTbOaaJy2jTznvQcXO syqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=oz0i84shysC6iSfvDBeaasf0vid05qQhKunT6wm9Mdw=; b=lUSS3FV+LzpiZzCmeIRwIqj185u0wDvP8MljTWUF0WVlJ6JBocu4gsq0q7ZlMMyEk3 RRcC1RWHMp6paHxZ4XkMv1VSl/IcUtrERINTGYtNZUsHrNBYBl7hOb+S+f7vc6kzMoCA 8jT5G2Ys6mzhBPa2BSjZ9YYPJo5usc9mRcfS4ZtBGnfG6QvVOrd3OJTdsZG8jznfsYpT uRUioSHar9Kjqge4Lu2nSJUcsdBpEAIHF85OSMhtcv7BdnahoHX62WuAUEuArjB0BVVw 44MAtrjEP/v3AReDuXvDaBY8Wi70iUbeaoPOqjpC3PCWeJXBHVS6ay9eWOgr1oZOvyMk 0hig== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.b=CkDj7BW8; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31si2185031ply.217.2017.06.27.07.00.05; Tue, 27 Jun 2017 07:00:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.b=CkDj7BW8; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751696AbdF0OAD (ORCPT + 3 others); 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 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(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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;