diff options
author | Kris Murphy <kriskend@linux.vnet.ibm.com> | 2017-03-16 10:51:28 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-03-16 11:59:46 -0700 |
commit | 8f3dbfd79ed9ef9770305a7cc4e13dfd31ad2cd0 (patch) | |
tree | 90361e3423c7e28f1e5587eb837d6b972ae22732 /net/openvswitch/flow_netlink.c | |
parent | ea90e0dc8cecba6359b481e24d9c37160f6f524f (diff) | |
download | linux-stable-8f3dbfd79ed9ef9770305a7cc4e13dfd31ad2cd0.tar.gz linux-stable-8f3dbfd79ed9ef9770305a7cc4e13dfd31ad2cd0.tar.bz2 linux-stable-8f3dbfd79ed9ef9770305a7cc4e13dfd31ad2cd0.zip |
openvswitch: Add missing case OVS_TUNNEL_KEY_ATTR_PAD
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>
Acked-by: Joe Stringer <joe@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/openvswitch/flow_netlink.c')
-rw-r--r-- | net/openvswitch/flow_netlink.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/openvswitch/flow_netlink.c b/net/openvswitch/flow_netlink.c index a08ff834676b..1105a838bab8 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); |