* [PATCH net] openvswitch: warn about missing first netlink attribute
@ 2017-06-08 8:37 Nicolas Dichtel
2017-06-08 19:57 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Nicolas Dichtel @ 2017-06-08 8:37 UTC (permalink / raw)
To: davem; +Cc: netdev, pshelar, dev, Nicolas Dichtel
The first netlink attribute (value 0) must always be defined
as none/unspec.
Because we cannot change an existing UAPI, I add a comment to point the
mistake and avoid to propagate it in a new ovs API in the future.
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
---
include/uapi/linux/openvswitch.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/uapi/linux/openvswitch.h b/include/uapi/linux/openvswitch.h
index 61b7d36dfe34..156ee4cab82e 100644
--- a/include/uapi/linux/openvswitch.h
+++ b/include/uapi/linux/openvswitch.h
@@ -343,6 +343,7 @@ enum ovs_key_attr {
#define OVS_KEY_ATTR_MAX (__OVS_KEY_ATTR_MAX - 1)
enum ovs_tunnel_key_attr {
+ /* OVS_TUNNEL_KEY_ATTR_NONE, standard nl API requires this attribute! */
OVS_TUNNEL_KEY_ATTR_ID, /* be64 Tunnel ID */
OVS_TUNNEL_KEY_ATTR_IPV4_SRC, /* be32 src IP address. */
OVS_TUNNEL_KEY_ATTR_IPV4_DST, /* be32 dst IP address. */
--
2.8.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH net] openvswitch: warn about missing first netlink attribute
2017-06-08 8:37 [PATCH net] openvswitch: warn about missing first netlink attribute Nicolas Dichtel
@ 2017-06-08 19:57 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2017-06-08 19:57 UTC (permalink / raw)
To: nicolas.dichtel; +Cc: netdev, pshelar, dev
From: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Date: Thu, 8 Jun 2017 10:37:45 +0200
> The first netlink attribute (value 0) must always be defined
> as none/unspec.
>
> Because we cannot change an existing UAPI, I add a comment to point the
> mistake and avoid to propagate it in a new ovs API in the future.
>
> Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Ok, I agree, we don't want people cut-and-pasting this kind of thing
and hopefully this comment prevents that.
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-06-08 19:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-08 8:37 [PATCH net] openvswitch: warn about missing first netlink attribute Nicolas Dichtel
2017-06-08 19:57 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox