diff options
author | 2013-08-22 12:30:48 -0700 | |
---|---|---|
committer | 2013-08-26 14:03:13 -0700 | |
commit | a175a723301a8a4a9fedf9ce5b8ca586e7a97b40 (patch) | |
tree | dcf29aa0043498e2e6ef231c38873345a21a7eff /net/openvswitch/flow.h | |
parent | net: Add NEXTHDR_SCTP to ipv6.h (diff) | |
download | linux-a175a723301a8a4a9fedf9ce5b8ca586e7a97b40.tar.gz linux-a175a723301a8a4a9fedf9ce5b8ca586e7a97b40.tar.bz2 linux-a175a723301a8a4a9fedf9ce5b8ca586e7a97b40.zip |
openvswitch: 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>
Signed-off-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'net/openvswitch/flow.h')
-rw-r--r-- | net/openvswitch/flow.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/openvswitch/flow.h b/net/openvswitch/flow.h index 9674e45f6969..d08dcf78dbf3 100644 --- a/net/openvswitch/flow.h +++ b/net/openvswitch/flow.h @@ -99,8 +99,8 @@ struct sw_flow_key { } addr; union { struct { - __be16 src; /* TCP/UDP source port. */ - __be16 dst; /* TCP/UDP destination port. */ + __be16 src; /* TCP/UDP/SCTP source port. */ + __be16 dst; /* TCP/UDP/SCTP destination port. */ } tp; struct { u8 sha[ETH_ALEN]; /* ARP source hardware address. */ @@ -115,8 +115,8 @@ struct sw_flow_key { } addr; __be32 label; /* IPv6 flow label. */ struct { - __be16 src; /* TCP/UDP source port. */ - __be16 dst; /* TCP/UDP destination port. */ + __be16 src; /* TCP/UDP/SCTP source port. */ + __be16 dst; /* TCP/UDP/SCTP destination port. */ } tp; struct { struct in6_addr target; /* ND target address. */ |