[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230409120813.GE182481@unreal>
Date: Sun, 9 Apr 2023 15:08:13 +0300
From: Leon Romanovsky <leon@...nel.org>
To: Shannon Nelson <shannon.nelson@....com>
Cc: brett.creeley@....com, davem@...emloft.net, netdev@...r.kernel.org,
kuba@...nel.org, drivers@...sando.io, jiri@...nulli.us
Subject: Re: [PATCH v9 net-next 08/14] pds_core: set up the VIF definitions
and defaults
On Thu, Apr 06, 2023 at 04:41:37PM -0700, Shannon Nelson wrote:
> The Virtual Interfaces (VIFs) supported by the DSC's
> configuration (vDPA, Eth, RDMA, etc) are reported in the
> dev_ident struct and made visible in debugfs. At this point
> only vDPA is supported in this driver - the other interfaces
> are defined for future use but not yet realized.
Let's add only supported modes for now.
<...>
> +static int viftype_show(struct seq_file *seq, void *v)
> +{
> + struct pdsc *pdsc = seq->private;
> + int vt;
> +
> + for (vt = 0; vt < PDS_DEV_TYPE_MAX; vt++) {
> + if (!pdsc->viftype_status[vt].name)
> + continue;
> +
> + seq_printf(seq, "%s\t%d supported %d enabled\n",
> + pdsc->viftype_status[vt].name,
> + pdsc->viftype_status[vt].supported,
> + pdsc->viftype_status[vt].enabled);
> + }
> + return 0;
> +}
> +DEFINE_SHOW_ATTRIBUTE(viftype);
I think that it is handled by devlink.
Thanks
Powered by blists - more mailing lists