Re: [PATCH net-next 0/2] Ease nsid allocation
From: Nicolas Dichtel <hidden>
Date: 2019-10-04 15:45:27
From: Nicolas Dichtel <hidden>
Date: 2019-10-04 15:45:27
Le 03/10/2019 à 18:19, Guillaume Nault a écrit : [snip]
Why not using the existing NLM_F_ECHO mechanism? IIUC, if rtnl_net_notifyid() did pass the proper nlmsghdr and portid to rtnl_notify(), the later would automatically notify the caller with updated information if the original request had the NLM_F_ECHO flag.
Good point. Note that with library like libnl, the auto sequence number check will fail (seq number is 0 instead of the previous + 1) and thus must be bypassed.