Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1838870pxb; Fri, 24 Sep 2021 13:11:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqBUwUpYR2C3B3qwewGSH+hjDIGDMRThdxBPqs//ZoAf21Y6k+C/+0/hC7719bUXLuPYbd X-Received: by 2002:a17:907:7803:: with SMTP id la3mr13569002ejc.235.1632514309774; Fri, 24 Sep 2021 13:11:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632514309; cv=none; d=google.com; s=arc-20160816; b=nLJhC8BdtfezN46BLRruNwntkojxoSuqBZdvaDXMPZbLgwzYk4qmlwhy3bVy/seqIU 1oLk0p0Tm5uuMjoqTqiZsjApICyFF7DDiKJYLnt8D3V7wzBKIa7UlWkxhuxiObeGRtyt iuzJI4lwoQZe/tMj7M8WuvH0ct4riGwoXPlwsxfMVEnsVSHQ7YG1TRwWCs/f5Tfu8hTj ymTpVgNdHad9SaDOVvuusB9odmc5wxJuEsAaMRUhhBGJnBDpD1m0ZZrcejDkwgz4ZCa6 d2xUuXYsXR1Bpx4tDxOUiyDH/tktZhmQW9lOHgwKUDp0Ts0IGoMlPOQHmjwVISBoGlAu GIcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=tfK/ArvX+gZIdTUBTspBG0xNnUmVtYxNHwMuPFUDfdY=; b=hSrRT9xRILnXPpo+xdBtKoF84xcG9PM32zhvk1ezaWFwxRt0eD/6NpruQ+VcMSLeDc U89Jr110Ine59xOaVRTocSjnhOlSQjJ4vjhhnXfeSQ/a/wXgk95hg55c4VDjTqrcgnPd SPI2xpo8WcS8REZAYDMQfM4b1SIp7HnXjkP7xzjapL3eMVmnTi9wpcUQu34J5iXjqWZA AAfSJbQVXcIqeuDte5nQJvTLAmEvmDS+KmQOk22XsN5nMReV1i8yP7+J9/4e+lzMyv5T FDGWaBx5M/iq7GTItA+LUVtE7o8iEpprc958ygl4X90iJ9RoYhRBThRxhvRsxIqIFj4l 6gDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="E/+IA0Tr"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k10si974962edk.558.2021.09.24.13.11.26; Fri, 24 Sep 2021 13:11:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="E/+IA0Tr"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345466AbhIXNIp (ORCPT + 99 others); Fri, 24 Sep 2021 09:08:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:35554 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346002AbhIXNFz (ORCPT ); Fri, 24 Sep 2021 09:05:55 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id AF16861507; Fri, 24 Sep 2021 12:56:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632488166; bh=x7tAnjex4zAl3zrZUc7XTPz3VV0SdB1OWSSGfTDIAwc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=E/+IA0TrR5Hm9drHJklns5wags/8XC9S22urp/1Xzb9IliDmiKKhNGCGE56LiYyoI OK6RQjv0SP+q3p6/gjdogcEZQDLVosee+N2a7PGbGlMlC5UcNAicB2Ay4dqWzerEIf 72sOwKVooHRZ/FoOeWa2PDkcbieYPP/wpVLkLj9A= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Patrick.Mclean@sony.com, Aya Levin , Tariq Toukan , Saeed Mahameed , Jakub Kicinski , Sasha Levin , Leon Romanovsky Subject: [PATCH 5.10 10/63] [PATCH] Revert "net/mlx5: Register to devlink ingress VLAN filter trap" Date: Fri, 24 Sep 2021 14:44:10 +0200 Message-Id: <20210924124334.598145185@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210924124334.228235870@linuxfoundation.org> References: <20210924124334.228235870@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Kroah-Hartman This reverts commit fe6322774ca28669868a7e231e173e09f7422118 which was commit 82e6c96f04e13c72d91777455836ffd012853caa upstream. It has been reported to cause regressions so should be dropped. Reported-by: Link: https://lore.kernel.org/r/BY5PR13MB3604D3031E984CA34A57B7C9EEA09@BY5PR13MB3604.namprd13.prod.outlook.com Cc: Aya Levin Cc: Tariq Toukan Cc: Tariq Toukan Cc: Saeed Mahameed Cc: Jakub Kicinski Cc: Sasha Levin Cc: Leon Romanovsky Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/mellanox/mlx5/core/devlink.c | 51 ---------------------- 1 file changed, 51 deletions(-) --- a/drivers/net/ethernet/mellanox/mlx5/core/devlink.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/devlink.c @@ -376,48 +376,6 @@ static void mlx5_devlink_set_params_init #endif } -#define MLX5_TRAP_DROP(_id, _group_id) \ - DEVLINK_TRAP_GENERIC(DROP, DROP, _id, \ - DEVLINK_TRAP_GROUP_GENERIC_ID_##_group_id, \ - DEVLINK_TRAP_METADATA_TYPE_F_IN_PORT) - -static const struct devlink_trap mlx5_traps_arr[] = { - MLX5_TRAP_DROP(INGRESS_VLAN_FILTER, L2_DROPS), -}; - -static const struct devlink_trap_group mlx5_trap_groups_arr[] = { - DEVLINK_TRAP_GROUP_GENERIC(L2_DROPS, 0), -}; - -static int mlx5_devlink_traps_register(struct devlink *devlink) -{ - struct mlx5_core_dev *core_dev = devlink_priv(devlink); - int err; - - err = devlink_trap_groups_register(devlink, mlx5_trap_groups_arr, - ARRAY_SIZE(mlx5_trap_groups_arr)); - if (err) - return err; - - err = devlink_traps_register(devlink, mlx5_traps_arr, ARRAY_SIZE(mlx5_traps_arr), - &core_dev->priv); - if (err) - goto err_trap_group; - return 0; - -err_trap_group: - devlink_trap_groups_unregister(devlink, mlx5_trap_groups_arr, - ARRAY_SIZE(mlx5_trap_groups_arr)); - return err; -} - -static void mlx5_devlink_traps_unregister(struct devlink *devlink) -{ - devlink_traps_unregister(devlink, mlx5_traps_arr, ARRAY_SIZE(mlx5_traps_arr)); - devlink_trap_groups_unregister(devlink, mlx5_trap_groups_arr, - ARRAY_SIZE(mlx5_trap_groups_arr)); -} - int mlx5_devlink_register(struct devlink *devlink, struct device *dev) { int err; @@ -432,16 +390,8 @@ int mlx5_devlink_register(struct devlink goto params_reg_err; mlx5_devlink_set_params_init_values(devlink); devlink_params_publish(devlink); - - err = mlx5_devlink_traps_register(devlink); - if (err) - goto traps_reg_err; - return 0; -traps_reg_err: - devlink_params_unregister(devlink, mlx5_devlink_params, - ARRAY_SIZE(mlx5_devlink_params)); params_reg_err: devlink_unregister(devlink); return err; @@ -449,7 +399,6 @@ params_reg_err: void mlx5_devlink_unregister(struct devlink *devlink) { - mlx5_devlink_traps_unregister(devlink); devlink_params_unpublish(devlink); devlink_params_unregister(devlink, mlx5_devlink_params, ARRAY_SIZE(mlx5_devlink_params));