Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp42057rwi; Tue, 18 Oct 2022 13:50:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6AojX0lNqPGrymyy2BcBZ820vh19DyT4Ga3FxLPxTCxt47KqmA0uPnIcjHXmPbr2QUTzSJ X-Received: by 2002:a17:907:788:b0:741:4d1a:595d with SMTP id xd8-20020a170907078800b007414d1a595dmr3901606ejb.737.1666126231384; Tue, 18 Oct 2022 13:50:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666126231; cv=pass; d=google.com; s=arc-20160816; b=g0xRUVsUD+rz9xB5hA7+6kqbEhyW2h8qpEI2SuKBVlpq3ah61sNB/GnkmOM5omWlqM WJOkLSzoh8Badl6fxvofdPSkLKs/0xCNbGbrdE+s5UFvVw/Tm2nNplEskVyS7y3UEzyV vxf2i4Lt2m+mEWfJfB2k8N5VTGSPuJJ8/X32KueBivcqQgT17ActPr57deSKr/LBxjW9 DNIpnZWrAVv1+h4OLt1b07K/TCnZJrubv0hZHsEE88LtLabhcrRYcDcBbcDTLPab/VyG LHnt5JZ2rdryzvDgq1GTQl9mFUZbX/LAycu0vIA6T9ymx92vTFWzBu9FEOfDD5BQldA7 wkiw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:organization:from:references:cc:to:content-language :subject:user-agent:date:message-id:dkim-signature:dkim-signature; bh=+dhMyrsmbdEqoLck7VSUZOY+8FLlSQMiPTEynf5AK0E=; b=GKuLxZwN8Ea5vFUdMjVrS4MfU+K0hGCd1dKxn7Dv/M9pb4u8I3qmtZSxcfQ9LLpcOl l2IMksnRx6o60hGl87z3zqd3vYAsG6JlUzzN8mNMkOpOM/4GYGe52VVFmQhZH8GwXm08 fmFTDAWlDETeoXMV1KgQuzFTEzOPAzQo5yydllM43pejP9uDzICoNHrDyv6sf14n9Jaq zr7V2mXgTY+j8LSPriWMaLOYUnYJ34w2/cpPU281e+kNuq6EFO5SnTtiBn6tjvBvBq/1 ww3NdFOgXaPg2pc1vz5jUYypHOxWOwRyCgAy/xmspL/HjauaQTFvTjrAxratekC5kPwZ dBog== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2022-7-12 header.b=cgu8u1uv; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=v6sXQWv2; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a21-20020a1709066d5500b00782933fe436si10788271ejt.965.2022.10.18.13.50.05; Tue, 18 Oct 2022 13:50:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2022-7-12 header.b=cgu8u1uv; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=v6sXQWv2; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229852AbiJRTxD (ORCPT + 99 others); Tue, 18 Oct 2022 15:53:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229908AbiJRTwp (ORCPT ); Tue, 18 Oct 2022 15:52:45 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1096C857DF for ; Tue, 18 Oct 2022 12:52:43 -0700 (PDT) Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29IJSw8b029483; Tue, 18 Oct 2022 19:52:37 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2022-7-12; bh=+dhMyrsmbdEqoLck7VSUZOY+8FLlSQMiPTEynf5AK0E=; b=cgu8u1uvsu50Tk8+ZSoAoiafvOQ9cVuv3Rxnjumd+j3wOzELVUqrx2aGr3EedHTuAFyE BtOOsQWYBVE9g3/VmTrP4C3JXWZIjOiiNxvtYVAlSugj2pP78XxeXJJBjtK0xzKvfbLf nkWruJUS9+DdV9qF1OFIGH7Gzfg5HLOiazJLGN/jd7mc+nZqTTD4m4zTP7xQTRY0qL38 hw9rmpSaI+TVZq53HGOnGDwYySlF5Gc8GXITlh0Oq1kOW2x+PxkhaaEAlP9TFNyr/NF8 gxQlKjec7ifrhnmEjPVzN1NEhsqo7FYLwqoBAz+GzKN+XgJ/vvwFl3ZQ0M4H0CXOaukr 0g== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3k7mw3ftbg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 18 Oct 2022 19:52:37 +0000 Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 29IJa8jq024348; Tue, 18 Oct 2022 19:52:36 GMT Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2171.outbound.protection.outlook.com [104.47.56.171]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3k8hu6r0b6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 18 Oct 2022 19:52:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=d29VUQJI1MmLbPtGfT5Scw5JYGtqef9rpo8saA6ykkhN0awyNNmMHwhUO/QQuuu2xTVxt0IVplcK+xOs5DigQjUQUwKFS9YS3zRvVmkHXDkTZKCJJPD8JRMYwK0AralCi2bgG7zK7Huq9/mtKra539fVYrDQL4DmaiGItKC3OIPyvEGvcmGNYbT7nXI/rOZEb1pwELn51JR9X29evQSlIF868V7VlLXWG1HbD2HwfwWLIV2cvksSBsw3ZHb6T3LH9yuDWaqgBYjM2oFQVTZbUI11X7C4RQvhSc9IBVp6lQUPEnBX190C0f3/kiSJL2EXVeHRJBNZa6QgJ4hSmutjfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=+dhMyrsmbdEqoLck7VSUZOY+8FLlSQMiPTEynf5AK0E=; b=jp7Hi2tf954kUvlxkF7sdH/OirdNc/kt6ia9Lsq3gto46c+buCDMvbJ7K925UzX8hRKctP8FGhQfHJZIUOagrJ7PHFDFX3LoXA0j/K6kgwx1biVM9zXggk5pJszAxMcrrpZABtY319lentP46QHcIxQSK6FErYXkwjjUAR0G7aywEntuS+pEjNTBuAeCrpD0DpvpLBdVd0l/nQ/iseh19tg+dxhNmYm0D/0ImQTt0k7hkyqXhDSR5YUygV23OP7Xbxr8jdqYQQpTVSewB6sVuSpLM+4wem4hT2C7cdG8nKEiHfW3v9Rn7YT6R3bd1SjKLBentGuSFWSzF06iaCAUzg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+dhMyrsmbdEqoLck7VSUZOY+8FLlSQMiPTEynf5AK0E=; b=v6sXQWv2Ova4gcnnF7jTJNzqXBWIBsn1d2Yy6Qw/kj5oZ0vaz1PkJSDBv+OZhjfVB2OvTwVid3nxkFHmBXhtEkjp9vvTtiCSLZlHjXkaa5kRq749WJupYeCYwCrAlcMYRD1QS7yJwYEpUZQHPFNQePabgqnaQY5sHIKFfvgGukc= Received: from MW4PR10MB6535.namprd10.prod.outlook.com (2603:10b6:303:225::12) by MN2PR10MB4336.namprd10.prod.outlook.com (2603:10b6:208:15f::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.34; Tue, 18 Oct 2022 19:52:33 +0000 Received: from MW4PR10MB6535.namprd10.prod.outlook.com ([fe80::9830:ae4d:f10c:c30a]) by MW4PR10MB6535.namprd10.prod.outlook.com ([fe80::9830:ae4d:f10c:c30a%5]) with mapi id 15.20.5723.032; Tue, 18 Oct 2022 19:52:33 +0000 Message-ID: Date: Tue, 18 Oct 2022 12:52:29 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Subject: Re: [PATCH 3/4] vdpa/mlx5: Add debugfs subtree Content-Language: en-US To: Eli Cohen , mst@redhat.com, jasowang@redhat.com, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org Cc: eperezma@redhat.com, lulu@redhat.com References: <20221018111232.4021-1-elic@nvidia.com> <20221018111232.4021-4-elic@nvidia.com> From: Si-Wei Liu Organization: Oracle Corporation In-Reply-To: <20221018111232.4021-4-elic@nvidia.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SN1PR12CA0111.namprd12.prod.outlook.com (2603:10b6:802:21::46) To MW4PR10MB6535.namprd10.prod.outlook.com (2603:10b6:303:225::12) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MW4PR10MB6535:EE_|MN2PR10MB4336:EE_ X-MS-Office365-Filtering-Correlation-Id: b42dd405-1b2c-4e59-dc7d-08dab1424c1a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 03hrYlico2BWQW6oWN2s2xvC5FbdN2fKDHBdTurlF7/sY42SmehfDJLHhjkW0iFvZW4Ce3CPc9/SgbcPS4qVikelqxCBMnquXcvJgIV3PW4or6Tm12zmdyFZayReP0oZtqcMBIlsN1S3nwfiTR3EPegJKqvTTP6Dlz6oMxueuYYjVo84t4A0YqnoKLXPoGKTG0IMaiO4iClECghztwvhIlVX6E1W639RLyDn1yzLzwwvseontMgi6HnYblnRGE/fJndiBDDThopggqjy7HpoI4k56yAdiMsrZjgtMPE/uVZPPZrsEUuttrws+r/0s67ElgObdMDr1HRL1X1ctrX3Y/Uygtj5yBJ8MOuFEWC2wEdraz9/DODz67v/gotmIatoQ6EIQFrd4JjD+ehH5tJccfplDH/7peboenuhZeKEeGxwX3Rrlp4CYsLoRbduI5Utz6A1dYGEviraQrYTdSFXpi7ZvulyoZdbb/Ba6O/Imc4GsT/uJWaDJALvQ5x9+cwcZDoIMJMYf2sQsfwH3u/c4e31cAsmxg6Cgp2mPHgPhm+HZGvvi2FtMRup1WCRINaNsgjUKFl6JTXhmINSBNIYEMGgoJUU32Nl6rrZXUnl96Txqnb+cn8WXjANUoR21f7B+4Kj0UiLFVpfbN8BAGtNUlnw13A+22MUQ+/6qRDQj+eXrXmyMrODUbcCZtgcZp4xaeWS54G3WrItjus0fs5GgCSkH2ZxO8nagewf1dUSBCQpqxBbfly2FjTEAp7teFsHhEUd2QZRLfpHVR3kEk+6/4Jnc8cbH+CEVpHpmuFpARI= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW4PR10MB6535.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(39860400002)(376002)(366004)(396003)(346002)(136003)(451199015)(36756003)(31696002)(86362001)(31686004)(38100700002)(2906002)(83380400001)(5660300002)(36916002)(26005)(6666004)(53546011)(6506007)(2616005)(186003)(6512007)(6486002)(478600001)(316002)(4326008)(8676002)(66946007)(66556008)(66476007)(41300700001)(8936002)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?dHUzREVsVFF6bnA4SUNrVHBPY3Y0eDF5ZVRHV3NvSllRV293QVpJK2UxaHJV?= =?utf-8?B?dUJ4bHU2aGREaVRmNFVGaXNnelBHSWhIeGlSck82ekQvT0pDWkV2eUN3TzdY?= =?utf-8?B?blQvMWdFWi9zNG1wK2hZRzdhbSsvaGNDOFo0MU5HeHk3ZjhBTEpVQnNkdXBF?= =?utf-8?B?aDc0MzFlTVozNkZuSzVNUmo1TytVSjByZlord3FUanVORzBTdjJqT29FczRP?= =?utf-8?B?QlZvZkZNRDJSQzJUVUJ5RlJ1Q2ZQQ2xFbVVLRWUrOWpkQk5hZ01raVh3M1lS?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yUGdVWW95cEwxN2kwMFRTek42M1pS?= =?utf-8?Q?HtqAqUMIKLBXl/qUYe4MBKchN?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: b42dd405-1b2c-4e59-dc7d-08dab1424c1a X-MS-Exchange-CrossTenant-AuthSource: MW4PR10MB6535.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Oct 2022 19:52:33.1007 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: CYNWhR6cu7rwwVY8pr7/KkBdSQ4k1DFj0lSrTKf1q1ij+RGFOxwLrCzc5JX0/EbPXnNYpAnoHxxKeJiwWKGt4A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR10MB4336 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-18_07,2022-10-18_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 mlxlogscore=999 malwarescore=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2210180112 X-Proofpoint-ORIG-GUID: n5PxUbXZ7pEl-5pry0cQmWINZpLW-6mh X-Proofpoint-GUID: n5PxUbXZ7pEl-5pry0cQmWINZpLW-6mh X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/18/2022 4:12 AM, Eli Cohen wrote: > Add debugfs subtree and expose flow table ID and TIR number. This > information can be used by external tools to do extended > troubleshooting. > > The information can be retrieved like so: > $ cat /sys/kernel/debug/mlx5/mlx5_core.sf.1/vdpa-0/rx/table_id > $ cat /sys/kernel/debug/mlx5/mlx5_core.sf.1/vdpa-0/rx/tirn > > Signed-off-by: Eli Cohen LGTM Reviewed-by: Si-Wei Liu > --- > drivers/vdpa/mlx5/Makefile | 2 +- > drivers/vdpa/mlx5/net/debug.c | 66 +++++++++++++++++++++++++++++++ > drivers/vdpa/mlx5/net/mlx5_vnet.c | 11 ++++++ > drivers/vdpa/mlx5/net/mlx5_vnet.h | 9 +++++ > 4 files changed, 87 insertions(+), 1 deletion(-) > create mode 100644 drivers/vdpa/mlx5/net/debug.c > > diff --git a/drivers/vdpa/mlx5/Makefile b/drivers/vdpa/mlx5/Makefile > index f717978c83bf..e791394c33e3 100644 > --- a/drivers/vdpa/mlx5/Makefile > +++ b/drivers/vdpa/mlx5/Makefile > @@ -1,4 +1,4 @@ > subdir-ccflags-y += -I$(srctree)/drivers/vdpa/mlx5/core > > obj-$(CONFIG_MLX5_VDPA_NET) += mlx5_vdpa.o > -mlx5_vdpa-$(CONFIG_MLX5_VDPA_NET) += net/mlx5_vnet.o core/resources.o core/mr.o > +mlx5_vdpa-$(CONFIG_MLX5_VDPA_NET) += net/mlx5_vnet.o core/resources.o core/mr.o net/debug.o > diff --git a/drivers/vdpa/mlx5/net/debug.c b/drivers/vdpa/mlx5/net/debug.c > new file mode 100644 > index 000000000000..95e4801df211 > --- /dev/null > +++ b/drivers/vdpa/mlx5/net/debug.c > @@ -0,0 +1,66 @@ > +// SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB > +/* Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved. */ > + > +#include > +#include > +#include "mlx5_vnet.h" > + > +static int tirn_show(struct seq_file *file, void *priv) > +{ > + struct mlx5_vdpa_net *ndev = file->private; > + > + seq_printf(file, "0x%x\n", ndev->res.tirn); > + return 0; > +} > + > +DEFINE_SHOW_ATTRIBUTE(tirn); > + > +void mlx5_vdpa_remove_tirn(struct mlx5_vdpa_net *ndev) > +{ > + if (ndev->debugfs) > + debugfs_remove(ndev->res.tirn_dent); > +} > + > +void mlx5_vdpa_add_tirn(struct mlx5_vdpa_net *ndev) > +{ > + ndev->res.tirn_dent = debugfs_create_file("tirn", 0444, ndev->rx_dent, > + ndev, &tirn_fops); > +} > + > +static int rx_flow_table_show(struct seq_file *file, void *priv) > +{ > + struct mlx5_vdpa_net *ndev = file->private; > + > + seq_printf(file, "0x%x\n", mlx5_flow_table_id(ndev->rxft)); > + return 0; > +} > + > +DEFINE_SHOW_ATTRIBUTE(rx_flow_table); > + > +void mlx5_vdpa_remove_rx_flow_table(struct mlx5_vdpa_net *ndev) > +{ > + if (ndev->debugfs) > + debugfs_remove(ndev->rx_table_dent); > +} > + > +void mlx5_vdpa_add_rx_flow_table(struct mlx5_vdpa_net *ndev) > +{ > + ndev->rx_table_dent = debugfs_create_file("table_id", 0444, ndev->rx_dent, > + ndev, &rx_flow_table_fops); > +} > + > +void mlx5_vdpa_add_debugfs(struct mlx5_vdpa_net *ndev) > +{ > + struct mlx5_core_dev *mdev; > + > + mdev = ndev->mvdev.mdev; > + ndev->debugfs = debugfs_create_dir(dev_name(&ndev->mvdev.vdev.dev), > + mlx5_debugfs_get_dev_root(mdev)); > + if (!IS_ERR(ndev->debugfs)) > + ndev->rx_dent = debugfs_create_dir("rx", ndev->debugfs); > +} > + > +void mlx5_vdpa_remove_debugfs(struct dentry *dbg) > +{ > + debugfs_remove_recursive(dbg); > +} > diff --git a/drivers/vdpa/mlx5/net/mlx5_vnet.c b/drivers/vdpa/mlx5/net/mlx5_vnet.c > index 64fdb940380f..ee50da33e25b 100644 > --- a/drivers/vdpa/mlx5/net/mlx5_vnet.c > +++ b/drivers/vdpa/mlx5/net/mlx5_vnet.c > @@ -1388,11 +1388,16 @@ static int create_tir(struct mlx5_vdpa_net *ndev) > > err = mlx5_vdpa_create_tir(&ndev->mvdev, in, &ndev->res.tirn); > kfree(in); > + if (err) > + return err; > + > + mlx5_vdpa_add_tirn(ndev); > return err; > } > > static void destroy_tir(struct mlx5_vdpa_net *ndev) > { > + mlx5_vdpa_remove_tirn(ndev); > mlx5_vdpa_destroy_tir(&ndev->mvdev, ndev->res.tirn); > } > > @@ -1576,6 +1581,7 @@ static int setup_steering(struct mlx5_vdpa_net *ndev) > mlx5_vdpa_warn(&ndev->mvdev, "failed to create flow table\n"); > return PTR_ERR(ndev->rxft); > } > + mlx5_vdpa_add_rx_flow_table(ndev); > > err = mac_vlan_add(ndev, ndev->config.mac, 0, false); > if (err) > @@ -1584,6 +1590,7 @@ static int setup_steering(struct mlx5_vdpa_net *ndev) > return 0; > > err_add: > + mlx5_vdpa_remove_rx_flow_table(ndev); > mlx5_destroy_flow_table(ndev->rxft); > return err; > } > @@ -1591,6 +1598,7 @@ static int setup_steering(struct mlx5_vdpa_net *ndev) > static void teardown_steering(struct mlx5_vdpa_net *ndev) > { > clear_mac_vlan_table(ndev); > + mlx5_vdpa_remove_rx_flow_table(ndev); > mlx5_destroy_flow_table(ndev->rxft); > } > > @@ -3167,6 +3175,7 @@ static int mlx5_vdpa_dev_add(struct vdpa_mgmt_dev *v_mdev, const char *name, > if (err) > goto err_reg; > > + mlx5_vdpa_add_debugfs(ndev); > mgtdev->ndev = ndev; > return 0; > > @@ -3193,6 +3202,8 @@ static void mlx5_vdpa_dev_del(struct vdpa_mgmt_dev *v_mdev, struct vdpa_device * > struct mlx5_vdpa_net *ndev = to_mlx5_vdpa_ndev(mvdev); > struct workqueue_struct *wq; > > + mlx5_vdpa_remove_debugfs(ndev->debugfs); > + ndev->debugfs = NULL; > if (ndev->nb_registered) { > mlx5_notifier_unregister(mvdev->mdev, &ndev->nb); > ndev->nb_registered = false; > diff --git a/drivers/vdpa/mlx5/net/mlx5_vnet.h b/drivers/vdpa/mlx5/net/mlx5_vnet.h > index 6691c879a6ca..f2cef3925e5b 100644 > --- a/drivers/vdpa/mlx5/net/mlx5_vnet.h > +++ b/drivers/vdpa/mlx5/net/mlx5_vnet.h > @@ -16,6 +16,7 @@ struct mlx5_vdpa_net_resources { > u32 tirn; > u32 rqtn; > bool valid; > + struct dentry *tirn_dent; > }; > > #define MLX5V_MACVLAN_SIZE 256 > @@ -43,6 +44,7 @@ struct mlx5_vdpa_net { > struct vdpa_callback config_cb; > struct mlx5_vdpa_wq_ent cvq_ent; > struct hlist_head macvlan_hash[MLX5V_MACVLAN_SIZE]; > + struct dentry *debugfs; > }; > > struct macvlan_node { > @@ -52,4 +54,11 @@ struct macvlan_node { > u64 macvlan; > }; > > +void mlx5_vdpa_add_debugfs(struct mlx5_vdpa_net *ndev); > +void mlx5_vdpa_remove_debugfs(struct dentry *dbg); > +void mlx5_vdpa_add_rx_flow_table(struct mlx5_vdpa_net *ndev); > +void mlx5_vdpa_remove_rx_flow_table(struct mlx5_vdpa_net *ndev); > +void mlx5_vdpa_add_tirn(struct mlx5_vdpa_net *ndev); > +void mlx5_vdpa_remove_tirn(struct mlx5_vdpa_net *ndev); > + > #endif /* __MLX5_VNET_H__ */