[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20151203134910.GJ2331@nanopsycho.orion>
Date: Thu, 3 Dec 2015 14:49:10 +0100
From: Jiri Pirko <jiri@...nulli.us>
To: Eric Dumazet <eric.dumazet@...il.com>
Cc: netdev@...r.kernel.org, davem@...emloft.net, idosch@...lanox.com,
eladr@...lanox.com, yotamg@...lanox.com, ogerlitz@...lanox.com,
j.vosburgh@...il.com, vfalico@...il.com, gospo@...ulusnetworks.com,
dsa@...ulusnetworks.com, nikolay@...ulusnetworks.com,
pjonnala@...adcom.com, f.fainelli@...il.com, sfeldma@...il.com,
john.fastabend@...il.com, roopa@...ulusnetworks.com, andrew@...n.ch
Subject: Re: [patch net-next v3 04/28] net: add netif_is_team_master helper
Thu, Dec 03, 2015 at 01:46:01PM CET, eric.dumazet@...il.com wrote:
>On Thu, 2015-12-03 at 12:12 +0100, Jiri Pirko wrote:
>
>> * struct net_device - The DEVICE structure.
>> @@ -3887,6 +3890,11 @@ static inline bool netif_is_ovs_master(const struct net_device *dev)
>> return dev->priv_flags & IFF_OPENVSWITCH;
>> }
>>
>> +static inline bool netif_is_team_master(struct net_device *dev)
>> +{
>> + return dev->priv_flags & IFF_TEAM;
>> +}
>> +
>
>Please add 'const' qualifiers whenever possible, like for
>netif_is_ovs_master(const struct net_device *dev)
Okay, will do. Thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists