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

Showing the changes to net/openvswitch (1 of 1 file). Show all

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
665 tun_flags |= TUNNEL_VXLAN_OPT;665 tun_flags |= TUNNEL_VXLAN_OPT;
666 opts_type = type;666 opts_type = type;
667 break;667 break;
668 case OVS_TUNNEL_KEY_ATTR_PAD:
669 break;
668 default:670 default:
669 OVS_NLERR(log, "Unknown IP tunnel attribute %d",671 OVS_NLERR(log, "Unknown IP tunnel attribute %d",
670 type);672 type);