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

From
Oliver Hartkopp <socketcan@hartkopp.net>
Date
2026-08-15 17:24:12
Reply to
Stephen Hemminger, 2026-08-15

On 15.08.26 18:00, Stephen Hemminger wrote:
On Sat, 15 Aug 2026 17:39:38 +0200
Oliver Hartkopp [off-list ref] wrote:
quoted
+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;
}
Good point!

Will wait for some more feedback before sending a v2.

Many thanks,
Oliver
Thread (15 messages) 15 messages, 4 authors, last reply 28d ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help