Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp376584lqg; Thu, 11 Apr 2024 06:02:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVKaz/JwwUGBf9RGCztbXwPvrzxPUgySyu8jvS9s/AWBaUHfto/DRafmWuyJxc+N9GHnwOGWUmjS4Xw7/5BWqwBi2pcpHnVL7rymFVIjg== X-Google-Smtp-Source: AGHT+IEdzjWlq7qHFmzWKI3LkJc6LQq1N5qCNNb2QjaV6iqiLWLgl63U1LMoJd5BCGag3y19APWy X-Received: by 2002:a05:6870:ed93:b0:22e:96a0:201c with SMTP id fz19-20020a056870ed9300b0022e96a0201cmr5809189oab.35.1712840571021; Thu, 11 Apr 2024 06:02:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712840570; cv=pass; d=google.com; s=arc-20160816; b=j5rxQFzOnUNlhTizbEHdL0JqAadh4RRVG9IeyF/jBWfJTtwH/NbMs0sffXOO0j0PZr Lta5yYRcdgTRA+AoCwB11s1bJ1vUqCC/JYKK3R3tBKuXDNH/e1t0hZyzfaOu7VvLMiw7 gn8xPZlDqe0pU4I2BGnNabliXKvbADPHkpkFOlv83/VVbiFXRds7VEjN2pjg8k3fgZHx CXOeYxPAHaNzYhdzAPtAMTPZxTGbH01bsJoujW0MVK230poAJzg6frPBRIuJ5beZF0+D b8jPHuhA1ggycvhD0Idivtarn5GUv9a4HkCj0feLx68R+KsGl4EhKtCx/XBg9ljd3gni sd4g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=A1S2BZQs607jOYltz5NWnHuxeNbi3j2zb8e/0scvOpU=; fh=hLFYHZmDNRFjBxFUE8Zk5aMhXt/RdWY4doPcLbzcriI=; b=B9E4DBp++zBs6K0uCixciJmonMd5W/bt/xIKSGASi7k/IDutFUJxjodOsFg+pB9R22 ELXxHt5WMIvx466HTri+qqUJ4NQuK08AxK8HAPASFMhWBzUjjagiOBlNizdBwZyARAmw +8jAlJyvtrl9M//K74QXH8cC/8L0+nAwZTfEr2NGfweZt+2csIPLg/PHk+5DmSb8G0fh tAEo5L35KMRkWT9wYOPKJUeOr37BsCkI7mWESMP1SfIjQRC1EaUOAs3/mY50LfwRAplV Wdc4W3BA1jJpsSxSbXi2QpvFY3WCJoGz8NJPhhfZ4Xxf3f/C3L6ua636kZ3XE/CSb+Em GVQg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ee6KmjAa; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-140477-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140477-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id b2-20020a0561020b0200b0047a3fc5d416si45264vst.702.2024.04.11.06.02.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 06:02:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140477-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ee6KmjAa; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-140477-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140477-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 89EEF1C22B8E for ; Thu, 11 Apr 2024 13:02:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 002FA149C59; Thu, 11 Apr 2024 13:02:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ee6KmjAa" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2DD2D145330 for ; Thu, 11 Apr 2024 13:02:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712840547; cv=none; b=dTSFfpmDaupdNxBImRj+XtVL1g2ZY9QfANxMG8BjzFKUZCJwJlElA41JANUd9UvKur1p1BUgVeuxvC45IX55p8d2VPbdsWzGax4wCPzGiS03xs1gCEpQVw8ProgPZOD1zgghz+2sVrJAMr5McyLYS4CB0bFR1ijVDies0uUi3VE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712840547; c=relaxed/simple; bh=ESPFWmvyV872Cls+3qJkAOMORRylHqseq4oYKF5Kl6o=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DQMkS29f8j3DcKTx9DKFwtk8KgwIuIuLIqHK6XkFYxK119ekS/RehjpnVHR7pTxt/aPK2qwdjkGUfNRF8sBhTe3ajsbNl6TJTs3q9qSZdRBMiwWYnrTuwmbTJT2T9Omru9azOPTMU7xKmTZZL8cYrk1NM3oZVlz4nWvcPQ8JqzM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ee6KmjAa; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4E8D1C433C7; Thu, 11 Apr 2024 13:02:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1712840545; bh=ESPFWmvyV872Cls+3qJkAOMORRylHqseq4oYKF5Kl6o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ee6KmjAa0iU08hNRllNCEnQh0UApDES4rtN+e5IE7LAGD8HFeK2QEwjntD+qUM8AW IjaB0Wd1j0wjJ6qE8T7kxieQV3mlO9zxSra9HUBoKwPoEo9FLMxDXxoxJqn+6Pua5z /H8w6OU+v3lgnYG1XHwlemn3qlXETIZzfhKdxN58= Date: Thu, 11 Apr 2024 15:02:23 +0200 From: Greg KH To: Vamsi Attunuru Cc: arnd@arndb.de, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 1/1] misc: mrvl-cn10k-dpi: add Octeon CN10K DPI administrative driver Message-ID: <2024041152-symphony-strained-8370@gregkh> References: <20240312105657.1589333-1-vattunuru@marvell.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240312105657.1589333-1-vattunuru@marvell.com> On Tue, Mar 12, 2024 at 03:56:57AM -0700, Vamsi Attunuru wrote: > --- /dev/null > +++ b/include/uapi/misc/mrvl_cn10k_dpi.h > @@ -0,0 +1,35 @@ > +// SPDX-License-Identifier: GPL-2.0 Wrong license for a uapi file, right? Please work with your lawyers to figure out the correct one if you have any questions. > +/* Marvell Octeon CN10K DPI driver > + * > + * Copyright (C) 2024 Marvell. > + * > + */ > + > +#ifndef __MRVL_CN10K_DPI_H__ > +#define __MRVL_CN10K_DPI_H__ > + > +#include > + > +#define DPI_MAX_ENGINES 6 > + > +struct dpi_mps_mrrs_cfg { > + u64 mrrs; /* Max read request size */ > + u64 mps; /* Max packet size */ > + u64 port; /* Ebus port */ > +}; > + > +struct dpi_engine_cfg { > + u64 fifo_mask; /* FIFO size mask in KBytes */ > + u64 molr[DPI_MAX_ENGINES]; > + u64 update_molr; /* '1' to update engine MOLR */ This is not how you create an ioctl, please read the kernel documentation for how to do it properly please. (hint, wrong data types.) Also, a pointer to the userspace code that is going to use this new api you are creating would be apprecaited. thanks, greg k-h