From: Nikolay Aleksandrov Subject: [PATCH net-next v2 0/9] net: ipmr: cleanups and minor improvements Date: Sat, 21 Nov 2015 15:57:23 +0100 Message-ID: <1448117852-4254-1-git-send-email-razor@blackwall.org> Cc: davem@davemloft.net, eric.dumazet@gmail.com, Nikolay Aleksandrov To: netdev@vger.kernel.org Return-path: Received: from mail-wm0-f46.google.com ([74.125.82.46]:37054 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759888AbbKUO7Z (ORCPT ); Sat, 21 Nov 2015 09:59:25 -0500 Received: by wmww144 with SMTP id w144so54414453wmw.0 for ; Sat, 21 Nov 2015 06:59:24 -0800 (PST) Sender: netdev-owner@vger.kernel.org List-ID: From: Nikolay Aleksandrov Hi, Since I'll have to work with ipmr, I decided to clean it up and do some minor improvements. Functionally there're almost no changes except the SLAB_PANIC removal. Most of the patches just re-design some functions to be clearer and more concise and try to remove the ifdef web that was inside. There's more information in each commit. This is the first set, the end goal is to introduce complete netlink support and control over the mfc and vif devices. I've tried to test all of the setsockopt/getsockopt options, and also made builds with various ipmr kconfig options turned on and off. v2: change patch 7 to keep SLAB_PANIC and just drop the unnecessary null check Thank you, Nik Nikolay Aleksandrov (9): net: ipmr: move the tbl id check in ipmr_new_table net: ipmr: always define mroute_reg_vif_num net: ipmr: remove some pimsm ifdefs and simplify net: ipmr: fix code and comment style net: ipmr: make ip_mroute_getsockopt more understandable net: ipmr: drop an instance of CONFIG_IP_MROUTE_MULTIPLE_TABLES net: ipmr: drop ip_mr_init() mrt_cachep null check as we'll panic if it fails net: ipmr: rearrange and cleanup setsockopt net: ipmr: factor out common vif init code include/uapi/linux/mroute.h | 59 ++--- net/ipv4/ipmr.c | 597 ++++++++++++++++++++------------------------ 2 files changed, 284 insertions(+), 372 deletions(-) -- 2.4.3