[ovs-dev] [PATCH] datapath: Add missing case OVS_TUNNEL_KEY_ATTR_PAD

Kris Murphy kriskend at linux.vnet.ibm.com
Tue Mar 14 18:30:02 UTC 2017


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.
Signed-off-by: Kris Murphy <kriskend at linux.vnet.ibm.com>
---
 datapath/flow_netlink.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/datapath/flow_netlink.c b/datapath/flow_netlink.c
index 0e38dd2..1e08ed3 100644
--- a/datapath/flow_netlink.c
+++ b/datapath/flow_netlink.c
@@ -651,6 +651,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.7.4



More information about the dev mailing list