From: Kris Murphy <krisk...@linux.vnet.ibm.com>

    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 <krisk...@linux.vnet.ibm.com>
    Acked-by: Joe Stringer <j...@ovn.org>
    Signed-off-by: David S. Miller <da...@davemloft.net>

Upstream: 8f3dbfd79ed9("openvswitch: Add missing case OVS_TUNNEL_KEY_ATTR_PAD")
Signed-off-by: Andy Zhou <az...@ovn.org>
---
 AUTHORS.rst             | 1 +
 datapath/flow_netlink.c | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/AUTHORS.rst b/AUTHORS.rst
index c8adeadccd6f..77deb2ebbabd 100644
--- a/AUTHORS.rst
+++ b/AUTHORS.rst
@@ -179,6 +179,7 @@ Kevin Lo                        ke...@freebsd.org
 Kevin Traynor                   kevin.tray...@intel.com
 Khem Raj                        raj.k...@gmail.com
 Kmindg G                        kmi...@gmail.com
+Kris Murphy                     krisk...@linux.vnet.ibm.com
 Krishna Kondaka                 kkond...@vmware.com
 Kyle Mestery                    mest...@mestery.com
 Kyle Upton                      kup...@baymicrosystems.com
diff --git a/datapath/flow_netlink.c b/datapath/flow_netlink.c
index e31852ebb421..704e2da5f7a6 100644
--- a/datapath/flow_netlink.c
+++ b/datapath/flow_netlink.c
@@ -667,6 +667,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);
-- 
1.8.3.1

_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to