From patchwork Tue Oct 31 16:36:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume Nault X-Patchwork-Id: 832631 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3yRH7330HFz9sDB for ; Wed, 1 Nov 2017 03:36:47 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753551AbdJaQgp (ORCPT ); Tue, 31 Oct 2017 12:36:45 -0400 Received: from zimbra.alphalink.fr ([217.15.80.77]:38621 "EHLO zimbra.alphalink.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753319AbdJaQgo (ORCPT ); Tue, 31 Oct 2017 12:36:44 -0400 Received: from localhost (localhost [127.0.0.1]) by mail-2-cbv2.admin.alphalink.fr (Postfix) with ESMTP id 6F65A2B52186; Tue, 31 Oct 2017 17:36:43 +0100 (CET) Received: from zimbra.alphalink.fr ([127.0.0.1]) by localhost (mail-2-cbv2.admin.alphalink.fr [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id r1Ka8R9-jJ8O; Tue, 31 Oct 2017 17:36:42 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail-2-cbv2.admin.alphalink.fr (Postfix) with ESMTP id 3C54B2B52183; Tue, 31 Oct 2017 17:36:42 +0100 (CET) X-Virus-Scanned: amavisd-new at mail-2-cbv2.admin.alphalink.fr Received: from zimbra.alphalink.fr ([127.0.0.1]) by localhost (mail-2-cbv2.admin.alphalink.fr [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 01oyTzgLZtrz; Tue, 31 Oct 2017 17:36:42 +0100 (CET) Received: from c-dev-0.admin.alphalink.fr (94-84-15-217.reverse.alphalink.fr [217.15.84.94]) by mail-2-cbv2.admin.alphalink.fr (Postfix) with ESMTP id 143592B52058; Tue, 31 Oct 2017 17:36:42 +0100 (CET) Received: by c-dev-0.admin.alphalink.fr (Postfix, from userid 1000) id E5E1360117; Tue, 31 Oct 2017 17:36:41 +0100 (CET) Date: Tue, 31 Oct 2017 17:36:41 +0100 From: Guillaume Nault To: netdev@vger.kernel.org Cc: James Chapman Subject: [PATCH net-next 0/4] l2tp: remove unused code Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Mutt-Fcc: =Sent User-Agent: NeoMutt/20170609 (1.8.3) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Patch #1 removes the ref/deref mechanism that was originally used to prevent ppp pseudowires from dropping their sockets. This mechanism was error prone and isn't used anymore. Patch #2 removes some module specific refcount debugging. Patches #3 and #4 take care of some dead code. Guillaume Nault (4): l2tp: remove ->ref() and ->deref() l2tp: remove l2tp specific refcount debugging l2tp: remove l2tp_tunnel_count and l2tp_session_count l2tp: remove field 'dev' from struct l2tp_eth net/l2tp/l2tp_core.c | 62 +++++++------------------------------------------ net/l2tp/l2tp_core.h | 34 ++++----------------------- net/l2tp/l2tp_debugfs.c | 4 +--- net/l2tp/l2tp_eth.c | 5 ---- net/l2tp/l2tp_ip.c | 4 +--- net/l2tp/l2tp_ip6.c | 4 +--- net/l2tp/l2tp_netlink.c | 20 +++++++--------- net/l2tp/l2tp_ppp.c | 10 +++----- 8 files changed, 27 insertions(+), 116 deletions(-)