mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
ofproto: Add NXM_NX_TUN_GBP_ID and NXM_NX_TUN_GBP_FLAGS
Introduces two new NXMs to represent VXLAN-GBP [0] fields. actions=load:0x10->NXM_NX_TUN_GBP_ID[],NORMAL tun_gbp_id=0x10,actions=drop This enables existing VXLAN tunnels to carry security label information such as a SELinux context to other network peers. The values are carried to/from the datapath using the attribute OVS_TUNNEL_KEY_ATTR_VXLAN_OPTS. [0] https://tools.ietf.org/html/draft-smith-vxlan-group-policy-00 Signed-off-by: Madhu Challa <challa@noironetworks.com> Acked-by: Ben Pfaff <blp@nicira.com> Signed-off-by: Thomas Graf <tgraf@noironetworks.com>
This commit is contained in:
committed by
Thomas Graf
parent
c7ecbf1e9c
commit
ac6073e3cd
@@ -135,6 +135,15 @@ ofp_print_packet_in(struct ds *string, const struct ofp_header *oh,
|
||||
ds_put_format(string, " tun_dst="IP_FMT, IP_ARGS(pin.fmd.tun_dst));
|
||||
}
|
||||
|
||||
if (pin.fmd.gbp_id != htons(0)) {
|
||||
ds_put_format(string, " gbp_id=%"PRIu16,
|
||||
ntohs(pin.fmd.gbp_id));
|
||||
}
|
||||
|
||||
if (pin.fmd.gbp_flags) {
|
||||
ds_put_format(string, " gbp_flags=0x%02"PRIx8, pin.fmd.gbp_flags);
|
||||
}
|
||||
|
||||
if (pin.fmd.metadata != htonll(0)) {
|
||||
ds_put_format(string, " metadata=0x%"PRIx64, ntohll(pin.fmd.metadata));
|
||||
}
|
||||
|
Reference in New Issue
Block a user