ofproto-dpif: Use proper special value for the reserved PID.
authorJustin Pettit <jpettit@nicira.com>
Sat, 5 Jan 2013 02:21:27 +0000 (18:21 -0800)
committerJustin Pettit <jpettit@nicira.com>
Thu, 10 Jan 2013 22:38:31 +0000 (14:38 -0800)
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 <jpettit@nicira.com>
ofproto/ofproto-dpif.c

index ae6d5c6..bc54122 100644 (file)
@@ -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);