From patchwork Fri Jul 27 08:59:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume Nault X-Patchwork-Id: 950054 Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@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=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=alphalink.fr Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 41cNFr69gkz9ryt for ; Fri, 27 Jul 2018 19:00:00 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730407AbeG0KUw (ORCPT ); Fri, 27 Jul 2018 06:20:52 -0400 Received: from zimbra.alphalink.fr ([217.15.80.77]:55020 "EHLO zimbra.alphalink.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729445AbeG0KUw (ORCPT ); Fri, 27 Jul 2018 06:20:52 -0400 Received: from localhost (localhost [127.0.0.1]) by mail-2-cbv2.admin.alphalink.fr (Postfix) with ESMTP id BE2062B52123; Fri, 27 Jul 2018 10:59:56 +0200 (CEST) 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 kfnO0ENYousv; Fri, 27 Jul 2018 10:59:55 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail-2-cbv2.admin.alphalink.fr (Postfix) with ESMTP id 8A4622B52129; Fri, 27 Jul 2018 10:59:55 +0200 (CEST) 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 RTOegOAfgPQq; Fri, 27 Jul 2018 10:59:55 +0200 (CEST) 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 62F752B52123; Fri, 27 Jul 2018 10:59:55 +0200 (CEST) Received: by c-dev-0.admin.alphalink.fr (Postfix, from userid 1000) id 425C3601CF; Fri, 27 Jul 2018 10:59:55 +0200 (CEST) Date: Fri, 27 Jul 2018 10:59:55 +0200 From: Guillaume Nault To: netdev@vger.kernel.org Cc: James Chapman Subject: [PATCH net-next 0/4] l2tp: remove unused session fields Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Mutt-Fcc: =Sent User-Agent: Mutt/1.10.1 (2018-07-13) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Several fields of the session structures can be set, but remain unused otherwise. This series removes these fields and explicitely ignores the associated ioctls and netlink attributes. Guillaume Nault (4): l2tp: ignore L2TP_ATTR_DATA_SEQ netlink attribute l2tp: ignore L2TP_ATTR_VLAN_ID netlink attribute l2tp: drop ->flags from struct pppol2tp_session l2tp: drop ->mru from struct l2tp_session include/uapi/linux/l2tp.h | 13 +++++----- net/l2tp/l2tp_core.c | 1 - net/l2tp/l2tp_core.h | 11 -------- net/l2tp/l2tp_debugfs.c | 6 ++--- net/l2tp/l2tp_netlink.c | 19 +------------- net/l2tp/l2tp_ppp.c | 54 +++++---------------------------------- 6 files changed, 17 insertions(+), 87 deletions(-)