History

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.

Kris Murphy committed 9 years ago

Commit 8f3dbfd1 parent ea90e0d1 file · +2 −0Browse files

Unified · Split

net/openvswitch/flow_netlink.c+2−0
@@ -665,6 +665,8 @@ static int ip_tun_from_nlattr(const struct nlattr *attr, · 664 unmodified lines
665665 tun_flags |= TUNNEL_VXLAN_OPT;
666666 opts_type = type;
667667 break;
668+ case OVS_TUNNEL_KEY_ATTR_PAD:
669+ break;
668670 default:
669671 OVS_NLERR(log, "Unknown IP tunnel attribute %d",
670672 type);