Re: [ovs-dev] [PATCH v2 14/26] meta-flow: Add byte access to struct mf_value.

2016-07-29 Thread Ben Pfaff
On Thu, Jul 28, 2016 at 05:56:06PM -0700, Jarno Rajahalme wrote:
> This allows reducing pointer casting when individual bytes of mf_value
> are accessed.  First users are in the following patches.
> 
> Signed-off-by: Jarno Rajahalme 

Acked-by: Ben Pfaff 
___
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev


[ovs-dev] [PATCH v2 14/26] meta-flow: Add byte access to struct mf_value.

2016-07-28 Thread Jarno Rajahalme
This allows reducing pointer casting when individual bytes of mf_value
are accessed.  First users are in the following patches.

Signed-off-by: Jarno Rajahalme 
---
 include/openvswitch/meta-flow.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/openvswitch/meta-flow.h b/include/openvswitch/meta-flow.h
index 196868a..533a4e6 100644
--- a/include/openvswitch/meta-flow.h
+++ b/include/openvswitch/meta-flow.h
@@ -1954,6 +1954,7 @@ struct mf_field {
 
 /* The representation of a field's value. */
 union mf_value {
+uint8_t b[128];
 uint8_t tun_metadata[128];
 struct in6_addr ipv6;
 struct eth_addr mac;
-- 
2.1.4

___
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev