This patchset introduces matching support for sctp src,dst ports. Round two addresses feedback from the previous posting and adds many more tests. In particular, there are now tests to check that set-field behaviour for SCTP src/dst port is correct when re-calculating checksums. The checksum tests were constructed based on the crc32c values calculated by wireshark for the same packets.
Major changes since v1: - Rebase against master - Calculate checksums as delta from incoming checksum - Do not recalculate sctp checksum on IP address changes - Add unit tests Joe Stringer (4): lib: Add CRC32C Implementation dpif: Add SCTP support datapath: Add SCTP support ofp-util: Add SCTP support NEWS | 1 + OPENFLOW-1.1+ | 4 - datapath/actions.c | 37 +++++++ datapath/checksum.c | 3 + datapath/datapath.c | 6 + datapath/flow.c | 60 ++++++++++++ datapath/flow.h | 8 +- datapath/linux/Modules.mk | 1 + datapath/linux/compat/include/linux/sctp.h | 17 ++++ include/linux/openvswitch.h | 6 + include/sparse/netinet/in.h | 1 + lib/automake.mk | 2 + lib/crc32c.c | 142 ++++++++++++++++++++++++++++ lib/crc32c.h | 25 +++++ lib/dpif-netdev.c | 6 + lib/flow.c | 33 ++++++- lib/flow.h | 4 +- lib/match.c | 4 + lib/meta-flow.c | 40 ++++++++ lib/meta-flow.h | 4 + lib/nx-match.c | 5 + lib/odp-util.c | 53 ++++++++++ lib/ofp-parse.c | 2 + lib/ofp-print.c | 6 + lib/ofp-util.c | 10 +- lib/packets.c | 23 +++++ lib/packets.h | 10 ++ ofproto/ofproto-dpif.c | 3 + tests/ofp-print.at | 64 +++++++++++++ tests/ofproto-dpif.at | 53 +++++++++-- tests/ovs-ofctl.at | 69 +++++++++++--- tests/test-netflow.c | 6 + utilities/ovs-ofctl.8.in | 20 +++-- 33 files changed, 682 insertions(+), 46 deletions(-) create mode 100644 datapath/linux/compat/include/linux/sctp.h create mode 100644 lib/crc32c.c create mode 100644 lib/crc32c.h -- 1.7.2.5 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev