diff options
author | Ben Pfaff <blp@nicira.com> | 2013-03-06 09:13:37 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2013-03-08 10:47:53 -0800 |
commit | d55759b9fb2389901d202f1bf3b1299384caa4e7 (patch) | |
tree | e724a7e6840425c98502fb1bcc832ff3c983d45b /lib | |
parent | c3480393c283d2df630edcf56e7beaf1cf481312 (diff) |
Add table_id to NXM flow_removed messages.
Feature #15466.
Requested-by: Ronghua Zhang <rzhang@vmware.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ofp-util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ofp-util.c b/lib/ofp-util.c index 40983504..2cbecbb3 100644 --- a/lib/ofp-util.c +++ b/lib/ofp-util.c @@ -2327,7 +2327,7 @@ ofputil_decode_flow_removed(struct ofputil_flow_removed *fr, fr->priority = ntohs(nfr->priority); fr->cookie = nfr->cookie; fr->reason = nfr->reason; - fr->table_id = 255; + fr->table_id = nfr->table_id ? nfr->table_id - 1 : 255; fr->duration_sec = ntohl(nfr->duration_sec); fr->duration_nsec = ntohl(nfr->duration_nsec); fr->idle_timeout = ntohs(nfr->idle_timeout); @@ -2406,6 +2406,7 @@ ofputil_encode_flow_removed(const struct ofputil_flow_removed *fr, nfr->cookie = fr->cookie; nfr->priority = htons(fr->priority); nfr->reason = fr->reason; + nfr->table_id = fr->table_id + 1; nfr->duration_sec = htonl(fr->duration_sec); nfr->duration_nsec = htonl(fr->duration_nsec); nfr->idle_timeout = htons(fr->idle_timeout); |