datapath: fix a bug in SF_FLOW_KEY_PUT macro
authorAndy Zhou <azhou@nicira.com>
Mon, 29 Jul 2013 20:26:08 +0000 (13:26 -0700)
committerJesse Gross <jesse@nicira.com>
Mon, 29 Jul 2013 20:31:01 +0000 (13:31 -0700)
commit388c13d860f34f6c1cf7aa799eaf61e9bcfc253b
tree83e2f6bfeed69a7c6fe51d53e215d64c931e9c29
parenta98ea90e1e86fc7f2bbdc6afd4ad9dc78a06e889
datapath: fix a bug in SF_FLOW_KEY_PUT macro

This bug will cause mask values to corrupt the flow key value. So far
the bug has not showed up because we don't write mask value when
there is no mask Netlink attributes.  However, it needs to be fixed for
the next and future commits where we will start to set default
values for key and mask for missing Netlink attributes.

Signed-off-by: Andy Zhou <azhou@nicira.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
datapath/flow.c