Thread (8 messages) flat view 8 messages, 3 authors, 2015-01-15

Re: [PATCH 1/5] vxlan: Group Policy extension

From: Thomas Graf <tgraf@suug.ch>
Date: 2015-01-15 03:20:30

On 01/14/15 at 07:06pm, Tom Herbert wrote:
quoted
+struct vxlan_metadata {
+       __be32          vni;
+       u32             gbp;
Should this be __be32 also and use ntohl/htonl when setting to/from skb->mark?
The bitmask is stored in host byte order in vxlan_metadata to be
compatible with skb->mark and converted to network byte order on
the wire, see:

        gbp = (struct vxlanhdr_gbp *)vxh;
        md.gbp = ntohs(gbp->policy_id);

and:

	gbp->policy_id = htons(md->gbp & VXLAN_GBP_ID_MASK);
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help