Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5786133ybe; Tue, 10 Sep 2019 08:47:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqy5KU4rg6bdJJCNnkObPzCS1e7sCAYuqCajZ25IMzGV3fA2jnWEWyx5uuyK9l93xDrQZM1J X-Received: by 2002:a17:906:4887:: with SMTP id v7mr25058874ejq.158.1568130448342; Tue, 10 Sep 2019 08:47:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568130448; cv=none; d=google.com; s=arc-20160816; b=xiT5951Gb9JvaWF9z/SktiB0Ds+wX7xpcuaO5eOLXQBORi9v/kQeXVplACxt6/EoID S2HRVKc9vSLuTy1d+bIiJSnunhAa/BgWcJ94blh82xABbnLdy0Pnvrsatata4pQu4YQX 1A/FfoVE5LamFFKQdoX16BEpKgcumYInsdiVYwHvfojBnzyLeXw7uK66gsb7KjllnpAf 4knYL7ZbMhiz78hvmOgCXzGrQOxI7tN3Hq1uZSgbSiw8rpVFqJetsbUR+Y+iBQNs0hiv QxdKm4usHWGFkwAAdJsgCAY9OS8CHWtUH3dw98Ofx0lZCyE/mAevly+47u4c83ntlYaq 531Q== 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; bh=m63hw1cs8JEboshBAGEaMeLbl7XzJEKKBEYO3wrpjaI=; b=HIPe0gwGv6/VJvpWzhgX35Fx/zacDdrY4TRWkqFNlZnTSZti+dx1FiJOXX2tjq6mWl 0d8DOpcNEOV3bfkuvkgzBiaEcSy4QPEedXvL3ZnzlI2raN1RluoAlOquWP0TJHTnqeO0 daBiuhKKeWI/1xzANjDouGhS++G10GAKF+BuCFh60yTE9HRDNj+/05DyMKy4uiz51x9m o0g9BxdKhJ5jGrR/jmbpSi31zDpVW5ClZrEF1skJPy0fE8o2FMw5q5uMNycLXFK68lmK 5VsWmmDaNW9OqgkB/KhkOGcPfhoLr0NvZ7I4MTyNi9KNpFzCMIZe1MSbMEqjACs53DBd IPoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kq6eaah8; 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 h17si11895058eda.54.2019.09.10.08.47.02; Tue, 10 Sep 2019 08:47:28 -0700 (PDT) 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=kq6eaah8; 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 S2436515AbfIJPo4 (ORCPT + 99 others); Tue, 10 Sep 2019 11:44:56 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:35477 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726664AbfIJPo4 (ORCPT ); Tue, 10 Sep 2019 11:44:56 -0400 Received: by mail-pf1-f193.google.com with SMTP id 205so11763212pfw.2; Tue, 10 Sep 2019 08:44:56 -0700 (PDT) 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=m63hw1cs8JEboshBAGEaMeLbl7XzJEKKBEYO3wrpjaI=; b=kq6eaah8+m6F18GfdV3XcEdwfQpiX+5ZJMezDnp2FBv2dUX6PeRDkg7ovLEztgIHKo eeyjRSDV1yoViFEibX7LnpZVrcyVlkFrzF7ej8S4Bk4B5tVG4VhJeES/wBlWX3XUW04c //sHuqxm2vtx3hU2s9ktsvkZzDl0QGddQbZe/7nCS0SG2QtgubWVVB27TNu5thGuBGUE vbgaq9IBjZ/e87w67LMiIEKqfuFy3xvM+jFnuynJ1Ev5fliVXnmHuroW4rZVy/AHZb9f KoQTCCvN/EXdNVLqE1tAQygH532nLPZ6NRHsVk3X3PYRATF8GKVNhzARK+Kq435GWLzp ZbfA== 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=m63hw1cs8JEboshBAGEaMeLbl7XzJEKKBEYO3wrpjaI=; b=ncNzIDBAuFmOLqA3rPYDVbaxdvkqOfxr+P8DQ9cn1td8rxffsAfki2+bvq3kCVZKDA wiLWM6Cjf/zVD1SSbXK51Cq+XLR2VGyyWF3CJ5/6tN8unr5v9pEY7OJq0xs6TPsPms4f qBhqZL95J8bqaYvVlcY+n32YV4ak9TYa8CS3t72LYUT5eRiYGRUH38Q1bKT/e74WA+bA ix4zYcZR7/qH/lS6iXU8OlMIkxzS81nywY0KbZHAndndqbR7YxAip7yA379pUpZgY2sQ 71OesntgRe7QrziOhvx2nyDxBL2C5ayACEiqnVSOgxu9QRZ6ZlVqFbpZl1BNvF7yUoeS v8Sw== X-Gm-Message-State: APjAAAXOsoUxiGbOhHSAgW89Gt4vre9TsY0RM2upIk6M5v3OUjnAvb8o 98nE2XgnmGt0xM9h3X37TlW5PBqo X-Received: by 2002:a63:7887:: with SMTP id t129mr28839763pgc.309.1568130295689; Tue, 10 Sep 2019 08:44:55 -0700 (PDT) Received: from localhost (c-73-222-71-142.hsd1.ca.comcast.net. [73.222.71.142]) by smtp.gmail.com with ESMTPSA id 127sm34662989pfy.56.2019.09.10.08.44.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2019 08:44:54 -0700 (PDT) Date: Tue, 10 Sep 2019 08:44:52 -0700 From: Richard Cochran To: Felipe Balbi Cc: Christopher S Hall , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 1/2] PTP: introduce new versions of IOCTLs Message-ID: <20190910154452.GB4016@localhost> References: <20190909075940.12843-1-felipe.balbi@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190909075940.12843-1-felipe.balbi@linux.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 09, 2019 at 10:59:39AM +0300, Felipe Balbi wrote: > case PTP_PEROUT_REQUEST: > + case PTP_PEROUT_REQUEST2: ... > + if (((req.perout.flags & ~PTP_PEROUT_VALID_FLAGS) || > + req.perout.rsv[0] || req.perout.rsv[1] || > + req.perout.rsv[2] || req.perout.rsv[3]) && > + cmd == PTP_PEROUT_REQUEST2) { > + err = -EINVAL; > + break; ... > +/* > + * Bits of the ptp_perout_request.flags field: > + */ > +#define PTP_PEROUT_VALID_FLAGS (~0) I think you meant (0) here, or I am confused... Thanks, Richard