From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9968EC43381 for ; Fri, 22 Feb 2019 18:12:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5348E206B6 for ; Fri, 22 Feb 2019 18:12:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=cumulusnetworks.com header.i=@cumulusnetworks.com header.b="EX6ez4Or" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727542AbfBVSMw (ORCPT ); Fri, 22 Feb 2019 13:12:52 -0500 Received: from internalmail.cumulusnetworks.com ([45.55.219.144]:60068 "EHLO internalmail.cumulusnetworks.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726633AbfBVSMw (ORCPT ); Fri, 22 Feb 2019 13:12:52 -0500 Received: from localhost (fw.cumulusnetworks.com [216.129.126.126]) by internalmail.cumulusnetworks.com (Postfix) with ESMTPSA id EA3DBC11CA; Fri, 22 Feb 2019 10:06:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cumulusnetworks.com; s=mail; t=1550858800; bh=GR773LSAPXbwVIpzkW+RM/7Us4sTCgwopMN2XDm4ZWE=; h=From:To:Cc:Subject:Date; b=EX6ez4OrzOt58Cu4EFb2M7pidSuu02h0jvHenJIxBPo4kK5SAEi6RwmL+pWhiSmLY ZRxb8JGbzEezem+DCwgcjfsVkI+Q8vbeSVC18vihLvvg2q7XuagkYyj6N2dhx2Z5Jh bsgHd3l+5D509NwE/yiLJezKXOojQ7HHwFhrllw8= From: Andy Roulin To: davem@davemloft.net Cc: netdev@vger.kernel.org, roopa@cumulusnetworks.com, aroulin@cumulusnetworks.com Subject: [PATCH net-next 0/3] net: protodown support for macvlan and vxlan Date: Fri, 22 Feb 2019 18:06:35 +0000 Message-Id: <20190222180638.10904-1-aroulin@cumulusnetworks.com> X-Mailer: git-send-email 2.11.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This patch series adds dev_change_proto_down_generic, a generic implementation of ndo_change_proto_down, which sets the netdev carrier state according to the new proto_down value. This handler adds the ability to set protodown on macvlan and vxlan interfaces in a generic way for use by control protocols like VRRPD. Patch (1) introduces the handler in net/code/dev.c. Patch (2) and (3) add support for change_proto_down in macvlan and vxlan drivers, respectively, using the new function. Andy Roulin (3): net: dev: add generic protodown handler macvlan: add ndo_change_proto_down support vxlan: add ndo_change_proto_down support drivers/net/macvlan.c | 1 + drivers/net/vxlan.c | 1 + include/linux/netdevice.h | 1 + net/core/dev.c | 19 +++++++++++++++++++ 4 files changed, 22 insertions(+) -- 2.11.0