Thread (17 messages) 17 messages, 4 authors, 2022-10-04

Re: [PATCHv5 net-next 1/4] rtnetlink: add new helper rtnl_configure_link_notify()

From: Guillaume Nault <hidden>
Date: 2022-09-30 16:02:30

On Fri, Sep 30, 2022 at 04:22:19PM +0200, Nicolas Dichtel wrote:
Le 30/09/2022 à 11:45, Hangbin Liu a écrit :
quoted
-int rtnl_configure_link(struct net_device *dev, const struct ifinfomsg *ifm)
+static int rtnl_configure_link_notify(struct net_device *dev, const struct ifinfomsg *ifm,
+				      struct nlmsghdr *nlh, u32 pid)
But not here. Following patches also use this order instead of the previous one.
For consistency, it could be good to keep the same order everywhere.
Yes, since a v6 will be necessary anyway, let's be consistent about the
order of parameters. That helps reading the code.

While there, I'd prefer to use 'portid' instead of 'pid'. I know
rtnetlink.c uses both, but 'portid' is more explicit and is what
af_netlink.c generally uses.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help