aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2022-04-28 15:10:32 -0700
committerVishal Verma <vishal.l.verma@intel.com>2022-06-15 16:28:51 -0600
commit2124f62aad2fcc00def36d119cfcdee22a7961e9 (patch)
tree23ab224126d038f6a759aac8af76aa768b7fd070
parent8a35aa8fd3e1db06228329a0ca900ce246ca329e (diff)
cxl/list: Auto-enable 'single' mode for port listings
The --single parameter instructs the filter code to gate listing of ancestor ports. However, that behavior can be inferred by attempts to list a port without the --ports option, i.e. make: cxl list -p $port ...equivalent to: cxl list -P -S -p $port Link: https://lore.kernel.org/r/165118383246.1676208.2097194779584921177.stgit@dwillia2-desk3.amr.corp.intel.com Signed-off-by: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
-rw-r--r--cxl/list.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cxl/list.c b/cxl/list.c
index 1e9d4411..940782d3 100644
--- a/cxl/list.c
+++ b/cxl/list.c
@@ -104,6 +104,7 @@ int cmd_list(int argc, const char **argv, struct cxl_ctx *ctx)
error("please specify entities to list, e.g. using -m/-M\n");
usage_with_options(u, options);
}
+ param.single = true;
}
log_init(&param.ctx, "cxl list", "CXL_LIST_LOG");