Received: by 10.223.176.5 with SMTP id f5csp1124153wra; Tue, 6 Feb 2018 13:07:52 -0800 (PST) X-Google-Smtp-Source: AH8x224NTkJotdhAx73VXIhkvwJS1KxEubXN5wBFU6QFZ6CsRy4iNjqiTI98QOQbsbV3iHpCgyLF X-Received: by 2002:a17:902:7486:: with SMTP id h6-v6mr3710838pll.236.1517951271938; Tue, 06 Feb 2018 13:07:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517951271; cv=none; d=google.com; s=arc-20160816; b=hQV32RsmbmBnnefOha9kJtfQ3EgSJF5bLTc+vXYKpuZWm4jfAI1RbGz3kCvDlu/63e fD4KK14R7DhcsZMHbKSHFwxAtltmdBXR0ZJPDKxFgdXgHICwEazsmBcm5DyNqEgELT4o Y4uKU9mN2djoS35OSdNAaCjZ58lqebtX+5uMy+vqGPDf7KwMK29LwAgB2BW0a56qVjad hSoVxvXllMOyGiNmeo9KIZ0CwT079Zl4zPyHaOmb926WIxKvw5ovAgUOv9ET84WKyT5q A8us4vHJDx0D5U1t6UTZyjN7sYVPDC5xDUBP1qpXxYTaPk/JPOH827oRVhOaQcs1DGTF 3zOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=fWphL+L7nhdYHQ+aGHVKoAJVy9lykFZmD5v4X1wq+Nk=; b=IWCl3M2OHs1UC+otJTtACIHkLpxT3FxGh9EFmUvVsMfED7n1NN77oPbQLGNe2cZTvw N4+/rWZlIn0EhMoLgeAax1hVlny6DNannQk69EosmEykWW/Y7qdp6eFEN2VxqT3di6IW hlqX/RlNqrTvi+UF0uvLG+6U45V8IkpHvT7+Cj4lggCePR51o8rFgdO+eC82mDFZvmUc 36+fdq2K5JuVn2OGZd4osSx5FeTpY2RRh5ciZ7QtiiUVXtAUS4Bfxa+ONCfqMGknoW3k c/5Mzcz4GcnS2iOLcRdK7x44e2Ui1ea8CElSVP5ApeQebVMVCwaD6GG33O78W3pbgJD8 BZtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GC2mag5s; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a3si440795pgw.58.2018.02.06.13.07.37; Tue, 06 Feb 2018 13:07:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GC2mag5s; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753535AbeBFVG6 (ORCPT + 99 others); Tue, 6 Feb 2018 16:06:58 -0500 Received: from mail-pl0-f46.google.com ([209.85.160.46]:37853 "EHLO mail-pl0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752514AbeBFVG4 (ORCPT ); Tue, 6 Feb 2018 16:06:56 -0500 Received: by mail-pl0-f46.google.com with SMTP id ay8so2036709plb.4; Tue, 06 Feb 2018 13:06:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=fWphL+L7nhdYHQ+aGHVKoAJVy9lykFZmD5v4X1wq+Nk=; b=GC2mag5szGwqlm/TH8OlSECK/Dx7yOAK/ujueeOsosbPP9Oz3TPq1LGrYMaUJgaUNO 4FPU2/Fv9NBCaPiC6nTLSD0yjaw4oilSEFiggL8A5DhOlf4UYv0a1SWeilDZvik87svc /Qxz5GOQZowrqfZkQYSsi7Zcalde2UKZDkoJaPu8ym7P+wad9tHTooW8IaZVzYR3kuXB UlmDiMr5WCcpiPNPKnyUQWLYqvrIFkifh/wuLPcB7n1I6385LMXVIN5pEbuEzckwZehF 3Y8ZJRQvwKVc7eM2ziumEpP1FcvnWGSf5Z5xTRMVDEe62JwhUlW+mp8W7/nY8oBTikyr +NJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=fWphL+L7nhdYHQ+aGHVKoAJVy9lykFZmD5v4X1wq+Nk=; b=Piu7c67DSI31K39Q9xhPDicwyQOuNpX5VGgg+t/eoMJfL5Vh4VeiDabFLOI5BfFCJL xjDL66VvjKqfPwgvpCYBHqeCi3pM+sdXlwisMq67nH1myR1Jt9Hys1T10eUYFKa8U1Ne NRQAt6fLLdkawZU9tf5Qq5JTC2F4hGImBx8zPIipNH2eljebebj0YrneHnoylc76U96N GIFPyp9lSRDz6gIgFI5VJajy+unxqA2kDz9sYPdq7KlS6dtA62u8WJjpa3M2bEpdxCaN xc08MnyYu4Pzo86mAT/NNcmaTndpji8czrkPtm1zMMM21z71vuJ1nwdcu3KdP60r3kuX nFVw== X-Gm-Message-State: APf1xPA+6F6umVR0rbDGmSDp6RNoGDOrNk/Xi68yQQUITj5TXmXtUwvh lzEZgcP02gKOXWIMSFPiOmcd4w== X-Received: by 2002:a17:902:8545:: with SMTP id d5-v6mr3687203plo.306.1517951215718; Tue, 06 Feb 2018 13:06:55 -0800 (PST) Received: from localhost (c-24-4-232-46.hsd1.ca.comcast.net. [24.4.232.46]) by smtp.gmail.com with ESMTPSA id r2sm9581276pgt.75.2018.02.06.13.06.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 06 Feb 2018 13:06:55 -0800 (PST) Date: Tue, 6 Feb 2018 13:06:53 -0800 From: Richard Cochran To: Christophe JAILLET Cc: jeffrey.t.kirsher@intel.com, intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] igb: Fix a test with HWTSTAMP_TX_ON Message-ID: <20180206210653.qjqmbxyqsdw43t3w@localhost> References: <20180206194759.26991-1-christophe.jaillet@wanadoo.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180206194759.26991-1-christophe.jaillet@wanadoo.fr> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 06, 2018 at 08:47:59PM +0100, Christophe JAILLET wrote: > 'HWTSTAMP_TX_ON' should be handled as a value, not as a bit mask. > The modified code should behave the same, because HWTSTAMP_TX_ON is 1 > and no other possible values of 'tx_type' would match the test. > However, this is more future-proof, should other values be allowed one day. Nice catch, and I am going to introduce more tx_type values soon. Thanks, Richard