Blame SOURCES/0160-cxl-list-Auto-enable-single-mode-for-port-listings.patch
|
|
2eb93d |
From 2124f62aad2fcc00def36d119cfcdee22a7961e9 Mon Sep 17 00:00:00 2001
|
|
|
2eb93d |
From: Dan Williams <dan.j.williams@intel.com>
|
|
|
2eb93d |
Date: Thu, 28 Apr 2022 15:10:32 -0700
|
|
|
2eb93d |
Subject: [PATCH 160/217] cxl/list: Auto-enable 'single' mode for port listings
|
|
|
2eb93d |
|
|
|
2eb93d |
The --single parameter instructs the filter code to gate listing of
|
|
|
2eb93d |
ancestor ports. However, that behavior can be inferred by attempts to list
|
|
|
2eb93d |
a port without the --ports option, i.e. make:
|
|
|
2eb93d |
|
|
|
2eb93d |
cxl list -p $port
|
|
|
2eb93d |
|
|
|
2eb93d |
...equivalent to:
|
|
|
2eb93d |
|
|
|
2eb93d |
cxl list -P -S -p $port
|
|
|
2eb93d |
|
|
|
2eb93d |
Link: https://lore.kernel.org/r/165118383246.1676208.2097194779584921177.stgit@dwillia2-desk3.amr.corp.intel.com
|
|
|
2eb93d |
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
|
|
|
2eb93d |
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
|
|
|
2eb93d |
---
|
|
|
2eb93d |
cxl/list.c | 1 +
|
|
|
2eb93d |
1 file changed, 1 insertion(+)
|
|
|
2eb93d |
|
|
|
2eb93d |
diff --git a/cxl/list.c b/cxl/list.c
|
|
|
2eb93d |
index 1e9d441..940782d 100644
|
|
|
2eb93d |
--- a/cxl/list.c
|
|
|
2eb93d |
+++ b/cxl/list.c
|
|
|
2eb93d |
@@ -104,6 +104,7 @@ int cmd_list(int argc, const char **argv, struct cxl_ctx *ctx)
|
|
|
2eb93d |
error("please specify entities to list, e.g. using -m/-M\n");
|
|
|
2eb93d |
usage_with_options(u, options);
|
|
|
2eb93d |
}
|
|
|
2eb93d |
+ param.single = true;
|
|
|
2eb93d |
}
|
|
|
2eb93d |
|
|
|
2eb93d |
log_init(¶m.ctx, "cxl list", "CXL_LIST_LOG");
|
|
|
2eb93d |
--
|
|
|
2eb93d |
2.27.0
|
|
|
2eb93d |
|