lkml.org 
[lkml]   [2024]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH net-next v5 1/9] net: dsa: add support for DCB get/set apptrust configuration
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);
> +}

\
 
 \ /
  Last update: 2024-05-27 16:31    [W:0.113 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site