From patchwork Sat Dec 27 18:01:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: stephen hemminger X-Patchwork-Id: 424244 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 476C81400DE for ; Sun, 28 Dec 2014 05:18:49 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751563AbaL0SSp (ORCPT ); Sat, 27 Dec 2014 13:18:45 -0500 Received: from mx0b-000f0801.pphosted.com ([67.231.152.113]:3675 "EHLO mx0b-000f0801.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751081AbaL0SSn (ORCPT ); Sat, 27 Dec 2014 13:18:43 -0500 X-Greylist: delayed 1128 seconds by postgrey-1.27 at vger.kernel.org; Sat, 27 Dec 2014 13:18:43 EST Received: from pps.filterd (m0000700 [127.0.0.1]) by mx0b-000f0801.pphosted.com (8.14.5/8.14.5) with SMTP id sBRI09Ul012772; Sat, 27 Dec 2014 10:01:45 -0800 Received: from hq1wp-exchub02.corp.brocade.com ([144.49.131.13]) by mx0b-000f0801.pphosted.com with ESMTP id 1req3u3vej-1 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Sat, 27 Dec 2014 10:01:45 -0800 Received: from HQ1WP-EXHUB02.corp.brocade.com (10.70.38.14) by hq1wp-exchub02.corp.brocade.com (10.70.38.99) with Microsoft SMTP Server (TLS) id 14.3.123.3; Sat, 27 Dec 2014 10:01:44 -0800 Received: from urahara (10.72.40.11) by imap.brocade.com (10.70.38.22) with Microsoft SMTP Server (TLS) id 8.3.298.1; Sat, 27 Dec 2014 10:01:43 -0800 Date: Sat, 27 Dec 2014 10:01:42 -0800 From: Stephen Hemminger To: David Miller CC: Subject: [PATCH net] gre: allow live address change Message-ID: <20141227100142.13b7ed79@urahara> Organization: Brocade MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.13.68, 1.0.33, 0.0.0000 definitions=2014-12-27_02:2014-12-24, 2014-12-27, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=19 spamscore=19 suspectscore=1 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1412270191 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org The GRE tap device supports Ethernet over GRE, but doesn't care about the source address of the tunnel, therefore it can be changed without bring device down. Signed-off-by: Stephen Hemminger --- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- a/net/ipv4/ip_gre.c 2014-12-27 09:43:49.070032631 -0800 +++ b/net/ipv4/ip_gre.c 2014-12-27 09:43:49.066032607 -0800 @@ -673,6 +673,7 @@ static bool ipgre_netlink_encap_parms(st static int gre_tap_init(struct net_device *dev) { __gre_tunnel_init(dev); + dev->priv_flags |= IFF_LIVE_ADDR_CHANGE; return ip_tunnel_init(dev); }