From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xin Long Subject: [PATCH net-next 0/2] ip_gre: add support for i/o_flags update Date: Tue, 7 Nov 2017 16:33:07 +0800 Message-ID: Cc: davem@davemloft.net, Jiri Benc To: network dev Return-path: Received: from mail-pg0-f68.google.com ([74.125.83.68]:50939 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932811AbdKGIdY (ORCPT ); Tue, 7 Nov 2017 03:33:24 -0500 Received: by mail-pg0-f68.google.com with SMTP id y5so10450854pgq.7 for ; Tue, 07 Nov 2017 00:33:24 -0800 (PST) Sender: netdev-owner@vger.kernel.org List-ID: ip_gre is using as many ip_tunnel apis as possible, newlink works fine as gre would do it's own part in .ndo_init. But when changing link, ip_tunnel_changelink doesn't even update i/o_flags, and also the update of these flags would cause some other gre's properties need to be updated or recalculated. These two patch are to add i/o_flags update and then do adjustment on some gre's properties according to the new i/o_flags. Xin Long (2): ip_gre: add the support for i/o_flags update via netlink ip_gre: add the support for i/o_flags update via ioctl net/ipv4/ip_gre.c | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 53 insertions(+), 5 deletions(-) -- 2.1.0