Thread (3 messages) flat view 3 messages, 3 authors, 2016-10-18

Re: [PATCH net-next 02/11] net: Introduce new api for walking upper and lower devices

From: David Ahern <hidden>
Date: 2016-10-18 00:42:14
Also in: intel-wired-lan, linux-rdma

On 10/17/16 6:21 AM, Stephen Hemminger wrote:
No if/else needed. No cast of void * ptr need. Use const if possible?
so much of the stack does not use const and trying to add it for this API does not work -- the upper or lower device is passed to the callbacks and those callbacks invoke other apis. e.g., the bond patch calls vlan_get_encap_level, bond_verify_device_path and bond_confirm_addr and none of those accept a const dev.

v3 coming up with the more succinct versions, but const is not possible.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help