From: Kris Murphy <kriskend@linux.vnet.ibm.com>
To: netdev@vger.kernel.org
Cc: seroyer@linux.vnet.ibm.com, adreznec@linux.vnet.ibm.com,
Kris Murphy <kriskend@linux.vnet.ibm.com>
Subject: [PATCH v2] openvswitch: Add missing case OVS_TUNNEL_KEY_ATTR_PAD
Date: Thu, 16 Mar 2017 10:51:28 -0500 [thread overview]
Message-ID: <1489679488-18874-1-git-send-email-kriskend@linux.vnet.ibm.com> (raw)
In-Reply-To: <1b8ba07efdee3db310d4504462924565684ebd64.1489677257.git.kriskend@linux.vnet.ibm.com>
Added a case for OVS_TUNNEL_KEY_ATTR_PAD to the switch statement
in ip_tun_from_nlattr in order to prevent the default case
returning an error.
Fixes: b46f6ded906e ("libnl: nla_put_be64(): align on a 64-bit area")
Signed-off-by: Kris Murphy <kriskend@linux.vnet.ibm.com>
---
net/openvswitch/flow_netlink.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/net/openvswitch/flow_netlink.c b/net/openvswitch/flow_netlink.c
index 6f5fa50..ceb3f3c 100644
--- a/net/openvswitch/flow_netlink.c
+++ b/net/openvswitch/flow_netlink.c
@@ -665,6 +665,8 @@ static int ip_tun_from_nlattr(const struct nlattr *attr,
tun_flags |= TUNNEL_VXLAN_OPT;
opts_type = type;
break;
+ case OVS_TUNNEL_KEY_ATTR_PAD:
+ break;
default:
OVS_NLERR(log, "Unknown IP tunnel attribute %d",
type);
--
2.7.4
next prev parent reply other threads:[~2017-03-16 15:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-16 15:26 [PATCH 0/1] openvswitch: Add missing case OVS_TUNNEL_KEY_ATTR_PAD Kris Murphy
2017-03-16 15:26 ` [PATCH 1/1] " Kris Murphy
2017-03-16 15:51 ` Kris Murphy [this message]
2017-03-16 18:46 ` [PATCH v2] " Joe Stringer
2017-03-16 19:00 ` David Miller
2017-03-28 15:22 ` Kris Murphy
2017-03-28 15:32 ` Kris Murphy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1489679488-18874-1-git-send-email-kriskend@linux.vnet.ibm.com \
--to=kriskend@linux.vnet.ibm.com \
--cc=adreznec@linux.vnet.ibm.com \
--cc=netdev@vger.kernel.org \
--cc=seroyer@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).