From mboxrd@z Thu Jan 1 00:00:00 1970 From: Petr Machata Subject: Re: [PATCH net-next v2 1/7] net: bridge: Extract boilerplate around switchdev_port_obj_*() Date: Mon, 28 May 2018 16:39:00 +0300 Message-ID: References: <40d11322cdf295d5f5b03d7acaf997486e68ed2f.1527503302.git.petrm@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain Cc: , , , , , , , , , , , To: Return-path: Received: from mail-eopbgr30070.outbound.protection.outlook.com ([40.107.3.70]:29234 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1033558AbeE1NjY (ORCPT ); Mon, 28 May 2018 09:39:24 -0400 In-Reply-To: <40d11322cdf295d5f5b03d7acaf997486e68ed2f.1527503302.git.petrm@mellanox.com> (Petr Machata's message of "Mon, 28 May 2018 12:49:55 +0200") Sender: netdev-owner@vger.kernel.org List-ID: Petr Machata writes: > diff --git a/net/bridge/br_private.h b/net/bridge/br_private.h > index 11520ed..33bd914 100644 > --- a/net/bridge/br_private.h > +++ b/net/bridge/br_private.h > @@ -1178,6 +1178,9 @@ static inline void br_switchdev_frame_unmark(struct sk_buff *skb) > } > #endif /* CONFIG_NET_SWITCHDEV */ > > +int br_switchdev_port_vlan_add(struct net_device *dev, u16 vid, u16 flags); > +int br_switchdev_port_vlan_del(struct net_device *dev, u16 vid); > + Nope, this actually does need to be in the ifdef block. The whole br_switchdev.c is built conditionally. I'll send v3. Petr