* YOSHIFUJI Hideaki / ?$B5HF#1QL@ <[EMAIL PROTECTED]> 2006-09-21 14:30 > In article <[EMAIL PROTECTED]> (at Mon, 18 Sep 2006 20:57:46 +0200), Thomas > Graf <[EMAIL PROTECTED]> says: > > Same here, it doesn't make sense to export macros only of functional > > value and used by userspace only. The same issue will pop up once > > all users have been converted to use the new netlink interface. > > Keeping the old interface around just so userspace doesn't have to > > make copies doesn't make sense. I think it's better to start fixing > > userspace than to try and keep headers source compatible. > > Backward compatibility is one of the most important factor. > A careless breakage is, say, of "brain freeze."
This isn't about backward compatibility, it's about userspace applications not sticking to the policy of using kernel headers. Which applications will break? I'll fix them. The kernel is only required to provide binary backward compatibility. > About these macros, we have other similar *_{RTA,PAYLOAD}()s in kernel, > which are not used by kernel but are exported to userspace. They are > forming part of our API, and they're good example how to use netlink > interface. Actually they are miserable examples of how to use netlink, they only cover part of the interface required and lead to tons of duplicated code in every userspace application. F.e. the different semantics of simliar interfaces inside the kernel and libnetlink have lead to countless bugs. > Yes, we could change the interface, but we definately need to give > them graceful period at least; we can do it in 2.7, or at least, > after 2-3 stable releases. Even thinking of 2.7 is not an option for me and I don't get the point in waiting 6 months before fixing userspace applications. - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html