From: David S. Miller Date: Tue, 28 Apr 2020 19:50:37 +0000 (-0700) Subject: Merge branch 'nexthop-API-sysctl' X-Git-Tag: v5.15~3723^2~406 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3e455b7d1a9b415b8b6e85f42ada9f53807ddd1f;p=platform%2Fkernel%2Flinux-starfive.git Merge branch 'nexthop-API-sysctl' Roopa Prabhu says: ==================== New sysctl to turn off nexthop API compat mode Currently route nexthop API maintains user space compatibility with old route API by default. Dumps and netlink notifications support both new and old API format. In systems which have moved to the new API, this compatibility mode cancels some of the performance benefits provided by the new nexthop API. This patch adds new sysctl nexthop_compat_mode which is on by default but provides the ability to turn off compatibility mode allowing systems to run entirely with the new routing API if they wish to. Old route API behaviour and support is not modified by this sysctl v4: - Use davids note for Documenting the sysctl - test with latest iproute2 and adjust 'pref' v3: - Document new sysctl - move sysctl to use proc_dointvec_minmax with 0 and 1 values - selftest: remove pref medium in ipv6 test v2: - Incorporate David Aherns pointers on covering dumps and nexthop deletes. Also use one ipv4 sysctl to cover both ipv4 and ipv6 (I see it is done that way for many others) - Added a selftest to cover dump and notfications for nexthop api compat mode ==================== Signed-off-by: David S. Miller --- 3e455b7d1a9b415b8b6e85f42ada9f53807ddd1f