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

David Ahern dsa at cumulusnetworks.com
Tue Oct 18 00:42:14 UTC 2016


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.


More information about the Intel-wired-lan mailing list