Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp479547lqj; Sun, 2 Jun 2024 07:19:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWFLS252F6Jjra8yVnaSOd+bTR7NwKC0/0kOMXV9o4xH23GgCZ1OJx5ZGwMncfoe7EoZEFs6kmzOr8sPmWP4eCZ3KbHgic9NZxvlWsbTA== X-Google-Smtp-Source: AGHT+IEpoLcBfuYSlKO/ZTREloMQ95e9fIm+FV9o/dBbLEHHG8en+nsuMvQJ9PZ2CHpiSmMsxz7l X-Received: by 2002:ae9:c312:0:b0:792:bf2e:2e55 with SMTP id af79cd13be357-794f5ed08efmr713314985a.47.1717337958910; Sun, 02 Jun 2024 07:19:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717337958; cv=pass; d=google.com; s=arc-20160816; b=D3ZrmdEWmNNWXbLehQYP8Ql3LnsCWzUjb3bPq0nuPh9qRn3HA0zQxHh3ZuTZSY/H1G mXQCoLHRGcklkZTjFYrtrpkqk2Zh/X01IOZXx4IQMcEGByF2rXeFB5dzRiBL5R+uulaq WGiobaN+DVx3LCR0p8Bja5ACqPeQ0D/+ly1hid855kPV81tDBG9KCGvtkHYs3Q1n843w 8u8M9TyTs2LdIczLbwjuYaWdDArWq0h/NC/H8JLkWqDVxGAKkky4oEZppKlRlSzfyOIv PsJ+m/8WZ9zhprwprR5spABr46KTw1B6RHzSEIqKcMzpETR/Cc3ZzfM+YJH2zokplijY 8rXg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=o8RBOg2YVX5TQy4cE+lxZslyfDzc2SAKgZRk6xBA98A=; fh=8j0eObIb3w6uFvJwSmp4GcBpCygscApxvR1HwJTKo9Y=; b=USY0UYkEH1Lpu4NvK/cKQ1SyJdw+PeoDyC6Xq7FJ+TXQlECAiPHR1ZlGwYUHSUFgLH 1Ba/SknKTivKNZeWWTH2BVtyIH3iVmwekIOxD8fri6kmeKDjmmLKfLwSMaNCk13QQ6IL xwjcy24HG/7oGbfxhVz/Q6v3EFih1jV8o7ZB5BJ6ahWB/sAR8E/d5zVnHLdn/BLoTpNJ CrqcJj1tK5cF6x4qb2CbOG9/w7FJKEl+UA8RxQYO7rGf49PqrHvs7ErbXiq+foOKvMXR Pj31ncwugH7MMiAdeXUWqzJForY1KvVgRQIZ+ENBoR0+o1zHf78ZModKxTZ1rPCmZC5K ViXQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=cBgnWd7W; arc=pass (i=1 spf=pass spfdomain=wanadoo.fr dkim=pass dkdomain=wanadoo.fr dmarc=pass fromdomain=wanadoo.fr); spf=pass (google.com: domain of linux-kernel+bounces-198283-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198283-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=wanadoo.fr Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-794f306339csi756981785a.367.2024.06.02.07.19.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jun 2024 07:19:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198283-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=@wanadoo.fr header.s=t20230301 header.b=cBgnWd7W; arc=pass (i=1 spf=pass spfdomain=wanadoo.fr dkim=pass dkdomain=wanadoo.fr dmarc=pass fromdomain=wanadoo.fr); spf=pass (google.com: domain of linux-kernel+bounces-198283-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198283-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=wanadoo.fr 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 9E4911C215BB for ; Sun, 2 Jun 2024 14:19:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0653442040; Sun, 2 Jun 2024 14:19:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b="cBgnWd7W" Received: from msa.smtpout.orange.fr (msa-208.smtpout.orange.fr [193.252.23.208]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A1EF23BBCB; Sun, 2 Jun 2024 14:19:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.252.23.208 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717337947; cv=none; b=aFZthFnwWyNiyF2Re+Sfn5pY6R2T04w5wQuLROnwV/QYECaUpcEOx/FPgeImsw0fpET17Uq8+cY/lBV2ccL3cYlktGnrQ939HVTSfFAgiDQ1qLsRjvq/Oe4XQ1/JnseTm0xDIg1Dn2Jo1A5T1o9T75j+0xmiykjgLfnJZMKQPA8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717337947; c=relaxed/simple; bh=616g9PhgfscNJD37Ox3mo0av4VN7wRoUTxTISJCeSz4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WrL7RJNipFtG1nmCH0iZRylbKmMhn4HuIU3B95BipClUJ0aVTy+X5Lk6Ir+fNO8JxdhJBGeiLXMJDcVJ/Sp4mwUSWFTqFy8IWB2Ji8s8dkWUeKBS83t8uxJH7qpVcPAbk/FviHZ67J/9A0ET5bUDYxAiuee6PVn124ywmLa5P+g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wanadoo.fr; spf=pass smtp.mailfrom=wanadoo.fr; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b=cBgnWd7W; arc=none smtp.client-ip=193.252.23.208 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wanadoo.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wanadoo.fr Received: from fedora.home ([86.243.17.157]) by smtp.orange.fr with ESMTPA id Dm2ns8x2vLmxrDm2osLKQn; Sun, 02 Jun 2024 16:18:48 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1717337928; bh=o8RBOg2YVX5TQy4cE+lxZslyfDzc2SAKgZRk6xBA98A=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=cBgnWd7WnT6MnIPUJWlcVKcKzEravI82GDI9l1h2wBd8piCoOUEXvahpzMVhX0YYi +c0dXsLxViMBiPEAZtQS6DUJinvg+F6UHeMIuW5L4wxb2+B8oRrIQOuQNIywRvBFN5 zb98sWqE6r+UCOikf2FAzKYXlhF3u28DKeRhGuWaFKz099oseE1fFYcBp/wkmIU5Hd bLfY0tirZEd8fjG9z+slYw/X5tIX5WMhg2L/BzFRXPBCXCZbtenmDVlnCA2GvqBV6y emC2yDWfTCip6MwsbpHXCgj3CPUNArawGtx11VxT796+4dcuVNOYYxAnDfpOp504iC lMcr7btn/7Vng== X-ME-Helo: fedora.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sun, 02 Jun 2024 16:18:48 +0200 X-ME-IP: 86.243.17.157 From: Christophe JAILLET To: idosch@nvidia.com, petrm@nvidia.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, jiri@resnulli.us Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET Subject: [PATCH 0/2 net-next] devlink: Constify struct devlink_dpipe_table_ops Date: Sun, 2 Jun 2024 16:18:51 +0200 Message-ID: X-Mailer: git-send-email 2.45.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Patch 1 updates devl_dpipe_table_register() and struct devlink_dpipe_table to accept "const struct devlink_dpipe_table_ops". Then patch 2 updates the only user of this function. This is compile tested only. Christophe JAILLET (2): devlink: Constify the 'table_ops' parameter of devl_dpipe_table_register() mlxsw: spectrum_router: Constify struct devlink_dpipe_table_ops drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c | 8 ++++---- include/net/devlink.h | 4 ++-- net/devlink/dpipe.c | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) -- 2.45.1