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.
Showing the changes to net/openvswitch (1 of 1 file). Show all
Unified · Split
| @@ -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); |