netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 net-next 1/3] openvswitch: Add a missing break statement.
@ 2016-11-29 23:30 Jarno Rajahalme
  2016-11-29 23:30 ` [PATCH v3 net-next 2/3] openvswitch: Use is_skb_forwardable() for length check Jarno Rajahalme
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Jarno Rajahalme @ 2016-11-29 23:30 UTC (permalink / raw)
  To: netdev; +Cc: jarno, jbenc, pshelar, e

Add a break statement to prevent fall-through from
OVS_KEY_ATTR_ETHERNET to OVS_KEY_ATTR_TUNNEL.  Without the break
actions setting ethernet addresses fail to validate with log messages
complaining about invalid tunnel attributes.

Fixes: 0a6410fbde ("openvswitch: netlink: support L3 packets")
Signed-off-by: Jarno Rajahalme <jarno@ovn.org>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
Acked-by: Jiri Benc <jbenc@redhat.com>
---
v3: No change.

 net/openvswitch/flow_netlink.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net/openvswitch/flow_netlink.c b/net/openvswitch/flow_netlink.c
index d19044f..c87d359 100644
--- a/net/openvswitch/flow_netlink.c
+++ b/net/openvswitch/flow_netlink.c
@@ -2195,6 +2195,7 @@ static int validate_set(const struct nlattr *a,
 	case OVS_KEY_ATTR_ETHERNET:
 		if (mac_proto != MAC_PROTO_ETHERNET)
 			return -EINVAL;
+		break;
 
 	case OVS_KEY_ATTR_TUNNEL:
 		if (masked)
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2016-12-20  1:07 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-29 23:30 [PATCH v3 net-next 1/3] openvswitch: Add a missing break statement Jarno Rajahalme
2016-11-29 23:30 ` [PATCH v3 net-next 2/3] openvswitch: Use is_skb_forwardable() for length check Jarno Rajahalme
2016-11-30  7:23   ` Pravin Shelar
2016-11-30 13:51   ` Jiri Benc
2016-11-30 21:30     ` Jarno Rajahalme
2016-12-01 19:50     ` Pravin Shelar
2016-12-02  9:25       ` Jiri Benc
2016-12-05  0:22         ` Pravin Shelar
2016-12-08 20:50           ` Eric Garver
2016-12-09  8:49             ` Jiri Benc
2016-11-29 23:30 ` [PATCH v3 net-next 3/3] openvswitch: Fix skb->protocol for vlan frames Jarno Rajahalme
2016-11-30  7:34   ` Pravin Shelar
2016-11-30 14:30   ` Jiri Benc
2016-12-01 20:31     ` Pravin Shelar
2016-12-02  9:42       ` Jiri Benc
2016-12-02  9:49         ` Jiri Benc
2016-12-05  0:58         ` Pravin Shelar
2016-12-14  5:07 ` [PATCH v3 net-next 1/3] openvswitch: Add a missing break statement Pravin Shelar
2016-12-20  1:07   ` Jarno Rajahalme

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).