diff options
author | Joe Stringer <joe@wand.net.nz> | 2013-08-22 20:24:43 +1200 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2013-08-22 09:29:39 -0700 |
commit | 10f72e3da94f99cf71ebe49cc03ef49d88a55656 (patch) | |
tree | 0d05ef058240c0aafa97de149e7d33680e799c20 /include/linux | |
parent | 97025b23a71ace7c1e640e37891e7d11a87e83fa (diff) | |
download | openvswitch-10f72e3da94f99cf71ebe49cc03ef49d88a55656.tar.gz |
datapath: Add SCTP support
This patch adds support for rewriting SCTP src,dst ports similar to the
functionality already available for TCP/UDP.
Rewriting SCTP ports is expensive due to double-recalculation of the
SCTP checksums; this is performed to ensure that packets traversing OVS
with invalid checksums will continue to the destination with any
checksum corruption intact.
Reviewed-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Joe Stringer <joe@wand.net.nz>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/openvswitch.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/openvswitch.h b/include/linux/openvswitch.h index a119b149b..09c26b56f 100644 --- a/include/linux/openvswitch.h +++ b/include/linux/openvswitch.h @@ -282,6 +282,7 @@ enum ovs_key_attr { OVS_KEY_ATTR_ND, /* struct ovs_key_nd */ OVS_KEY_ATTR_SKB_MARK, /* u32 skb mark */ OVS_KEY_ATTR_TUNNEL, /* Nested set of ovs_tunnel attributes */ + OVS_KEY_ATTR_SCTP, /* struct ovs_key_sctp */ #ifdef __KERNEL__ OVS_KEY_ATTR_IPV4_TUNNEL, /* struct ovs_key_ipv4_tunnel */ @@ -364,6 +365,11 @@ struct ovs_key_udp { __be16 udp_dst; }; +struct ovs_key_sctp { + __be16 sctp_src; + __be16 sctp_dst; +}; + struct ovs_key_icmp { __u8 icmp_type; __u8 icmp_code; |