Re: [PATCH net-next v5 1/9] net: dsa: add support for DCB get/set apptrust configuration
From: Daniel Machon
Date: Tue Apr 09 2024 - 10:06:12 EST
Hi Oleksij
> +static int __maybe_unused
> +dsa_user_dcbnl_set_apptrust(struct net_device *dev, u8 *sel, int nsel)
> +{
> + struct dsa_port *dp = dsa_user_to_port(dev);
> + struct dsa_switch *ds = dp->ds;
> + int port = dp->index;
> +
This should be !ds->ops->port_set_apptrust, right :-)
> + if (!ds->ops->port_get_apptrust)
> + return -EOPNOTSUPP;
> +
> + return ds->ops->port_set_apptrust(ds, port, sel, nsel);
> +}