Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1235614 > unrolled thread

[PATCH net 4/7] openvswitch: Ensure flow is valid before executing ct

Started byJoe Stringer <joestringer@nicira.com>
First post2015-09-30 00:50 +0200
Last post2015-10-01 02:40 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH net 4/7] openvswitch: Ensure flow is valid before executing ct Joe Stringer <joestringer@nicira.com> - 2015-09-30 00:50 +0200
    Re: [PATCH net 4/7] openvswitch: Ensure flow is valid before  executing ct Pravin Shelar <pshelar@nicira.com> - 2015-10-01 02:40 +0200

#1235614 — [PATCH net 4/7] openvswitch: Ensure flow is valid before executing ct

FromJoe Stringer <joestringer@nicira.com>
Date2015-09-30 00:50 +0200
Subject[PATCH net 4/7] openvswitch: Ensure flow is valid before executing ct
Message-ID<qebSG-3fs-21@gated-at.bofh.it>
The ct action uses parts of the flow key, so we need to ensure that it
is valid before executing that action.

Fixes: 7f8a436 "openvswitch: Add conntrack action"
Signed-off-by: Joe Stringer <joestringer@nicira.com>
---
 net/openvswitch/actions.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/net/openvswitch/actions.c b/net/openvswitch/actions.c
index e1afbd1..9a88f15 100644
--- a/net/openvswitch/actions.c
+++ b/net/openvswitch/actions.c
@@ -1104,6 +1104,12 @@ static int do_execute_actions(struct datapath *dp, struct sk_buff *skb,
 			break;
 
 		case OVS_ACTION_ATTR_CT:
+			if (!is_flow_key_valid(key)) {
+				err = ovs_flow_key_update(skb, key);
+				if (err)
+					return err;
+			}
+
 			err = ovs_ct_execute(ovs_dp_get_net(dp), skb, key,
 					     nla_data(a));
 
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1236878 — Re: [PATCH net 4/7] openvswitch: Ensure flow is valid before executing ct

FromPravin Shelar <pshelar@nicira.com>
Date2015-10-01 02:40 +0200
SubjectRe: [PATCH net 4/7] openvswitch: Ensure flow is valid before executing ct
Message-ID<qeA4G-4qI-9@gated-at.bofh.it>
In reply to#1235614
On Tue, Sep 29, 2015 at 3:39 PM, Joe Stringer <joestringer@nicira.com> wrote:
> The ct action uses parts of the flow key, so we need to ensure that it
> is valid before executing that action.
>
> Fixes: 7f8a436 "openvswitch: Add conntrack action"
> Signed-off-by: Joe Stringer <joestringer@nicira.com>

Acked-by: Pravin B Shelar <pshelar@nicira.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web