From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Dumazet Subject: Re: [PATCH v1 net-next 12/14] igb: Only call skb_tx_timestamp after descriptors are ready Date: Wed, 27 Jun 2018 16:56:27 -0700 Message-ID: <44770d6b-503c-279f-807f-0b7f11be56cf@gmail.com> References: <20180627215950.6719-1-jesus.sanchez-palencia@intel.com> <20180627215950.6719-13-jesus.sanchez-palencia@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: tglx@linutronix.de, jan.altenberg@linutronix.de, vinicius.gomes@intel.com, kurt.kanzenbach@linutronix.de, henrik@austad.us, richardcochran@gmail.com, levi.pearson@harman.com, ilias.apalodimas@linaro.org, ivan.khoronzhuk@linaro.org, mlichvar@redhat.com, willemb@google.com, jhs@mojatatu.com, xiyou.wangcong@gmail.com, jiri@resnulli.us To: Jesus Sanchez-Palencia , netdev@vger.kernel.org Return-path: Received: from mail-pf0-f196.google.com ([209.85.192.196]:38002 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751283AbeF0X4b (ORCPT ); Wed, 27 Jun 2018 19:56:31 -0400 Received: by mail-pf0-f196.google.com with SMTP id j17-v6so1696448pfn.5 for ; Wed, 27 Jun 2018 16:56:30 -0700 (PDT) In-Reply-To: <20180627215950.6719-13-jesus.sanchez-palencia@intel.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 06/27/2018 02:59 PM, Jesus Sanchez-Palencia wrote: > Currently, skb_tx_timestamp() is being called before the DMA > descriptors are prepared in igb_xmit_frame_ring(), which happens > during either the igb_tso() or igb_tx_csum() calls. > > Given that now the skb->tstamp might be used to carry the timestamp > for SO_TXTIME, we must only call skb_tx_timestamp() after the > information has been copied into the DMA tx_ring. Since when this skb->tstamp use happened ? If this is in patch 11/14 (igb: Add support for ETF offload), then you should either : 1) Squash this into 11/14 2) swap 11 and 12 patch, so that this change is done before "igb: Add support for ETF offload" Otherwise a bisection could fail badly.