openvswitch: Add missing case OVS_TUNNEL_KEY_ATTR_PAD
authorKris Murphy <kriskend@linux.vnet.ibm.com>
Thu, 16 Mar 2017 15:51:28 +0000 (10:51 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Mar 2017 18:59:46 +0000 (11:59 -0700)
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>
net/openvswitch/flow_netlink.c

index a08ff834676ba9a8f82bb602cbc15d0d20e76478..1105a838bab83f9fe647423060d08e4a415bab61 100644 (file)
@@ -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);