Thread (5 messages) 5 messages, 4 authors, 2020-07-31

Re: [PATCH net-next] rtnetlink: add support for protodown reason

From: Roopa Prabhu <hidden>
Date: 2020-07-31 02:59:09

On 7/30/20 4:38 PM, David Miller wrote:
From: Roopa Prabhu <redacted>
Date: Mon, 27 Jul 2020 12:21:17 -0700
quoted
+/**
+ *   dev_get_proto_down_reason - returns protodown reason
+ *
+ *   @dev: device
+ */
+u32 dev_get_proto_down_reason(const struct net_device *dev)
+{
+     return dev->proto_down_reason;
+}
+EXPORT_SYMBOL(dev_get_proto_down_reason);
This helper is excessive, please remove it and just dereference the
netdev member directly.

Thank you.

agree, will send v2. (it was meant to do more than just that initially)

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help