| From 9539e67b9d28ef27cfbdf21648955af84c8cafff Mon Sep 17 00:00:00 2001 |
| From: Kris Murphy <kriskend@linux.vnet.ibm.com> |
| Date: Thu, 16 Mar 2017 10:51:28 -0500 |
| Subject: [PATCH] openvswitch: Add missing case OVS_TUNNEL_KEY_ATTR_PAD |
| |
| commit 8f3dbfd79ed9ef9770305a7cc4e13dfd31ad2cd0 upstream. |
| |
| 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> |
| Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> |
| |
| diff --git a/net/openvswitch/flow_netlink.c b/net/openvswitch/flow_netlink.c |
| index cae527b33de9..408e226a810f 100644 |
| --- a/net/openvswitch/flow_netlink.c |
| +++ b/net/openvswitch/flow_netlink.c |
| @@ -649,6 +649,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.12.0 |
| |