summaryrefslogtreecommitdiff
path: root/datapath
diff options
context:
space:
mode:
authorJan Scheurich <jan.scheurich@ericsson.com>2017-11-07 15:48:39 +0100
committerBen Pfaff <blp@ovn.org>2017-11-08 12:31:57 -0800
commit7edef47b4896135b2c4ca62e4458fb9a5f3fff44 (patch)
treec86d1f040409fffac3962c1b1ca9c3fb0db5681d /datapath
parentea36b04688f37cf45b7c2304ce31f0d29f212d54 (diff)
downloadopenvswitch-7edef47b4896135b2c4ca62e4458fb9a5f3fff44.tar.gz
NSH: Minor bugfixes
- Fix 2 incorrect length checks - Remove unnecessary limit of MD length to 16 bytes - Remove incorrect comments stating MD2 was not supported - Pad metadata in encap_nsh with zeroes if not multiple of 4 bytes Signed-off-by: Jan Scheurich <jan.scheurich@ericsson.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'datapath')
-rw-r--r--datapath/linux/compat/include/linux/openvswitch.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/datapath/linux/compat/include/linux/openvswitch.h b/datapath/linux/compat/include/linux/openvswitch.h
index bc6c94b8d..561f89502 100644
--- a/datapath/linux/compat/include/linux/openvswitch.h
+++ b/datapath/linux/compat/include/linux/openvswitch.h
@@ -793,15 +793,15 @@ struct ovs_action_push_eth {
struct ovs_key_ethernet addresses;
};
-#define OVS_ENCAP_NSH_MAX_MD_LEN 16
+#define OVS_ENCAP_NSH_MAX_MD_LEN 248
/*
* struct ovs_action_encap_nsh - %OVS_ACTION_ATTR_ENCAP_NSH
* @flags: NSH header flags.
* @mdtype: NSH metadata type.
- * @mdlen: Length of NSH metadata in bytes.
+ * @mdlen: Length of NSH metadata in bytes, including padding.
* @np: NSH next_protocol: Inner packet type.
* @path_hdr: NSH service path id and service index.
- * @metadata: NSH metadata for MD type 1 or 2
+ * @metadata: NSH context metadata, padded to 4-bytes
*/
struct ovs_action_encap_nsh {
uint8_t flags;