Re: [PATCH net] net: do not bond/team netdevices which use ml_priv

Stephen Hemminger <[email protected]>
Newsgroups org.kernel.vger.netdev
Message-ID <[email protected]>
On Sat, 15 Aug 2026 17:39:38 +0200
Oliver Hartkopp <[email protected]> wrote:

> +static inline bool netdev_has_ml_priv(struct net_device *dev)
> +{
> +	return (dev->ml_priv != NULL);
> +}
> +

Minor suggestion: use const and drop unneeded parens

static inline bool netdev_has_ml_priv(const struct net_device *dev)
{
	return dev->ml_priv != NULL;
}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.