From 9032f11e8fbbe3b89fa39cd10e28cbdc81225fa0 Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Fri, 4 Jan 2013 18:21:27 -0800 Subject: [PATCH] ofproto-dpif: Use proper special value for the reserved PID. The compose_slow_path() function used UINT16_MAX for dpif_port_get_pid(), when it should be UINT32_MAX to get the proper reserved PID. Signed-off-by: Justin Pettit --- ofproto/ofproto-dpif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index ae6d5c627..bc541225c 100644 --- a/ofproto/ofproto-dpif.c +++ b/ofproto/ofproto-dpif.c @@ -5271,7 +5271,7 @@ compose_slow_path(const struct ofproto_dpif *ofproto, const struct flow *flow, ofpbuf_use_stack(&buf, stub, stub_size); if (slow & (SLOW_CFM | SLOW_LACP | SLOW_STP)) { - uint32_t pid = dpif_port_get_pid(ofproto->backer->dpif, UINT16_MAX); + uint32_t pid = dpif_port_get_pid(ofproto->backer->dpif, UINT32_MAX); odp_put_userspace_action(pid, &cookie, &buf); } else { put_userspace_action(ofproto, &buf, flow, &cookie); -- 2.43.0