Commit Graph
100 Commits
Author SHA1 Message Date
Glen Gibb bc3d3a58f2 regress: run fwd broadcast exact port on all ports
Change submitted by: Jean Tourrilhes <jt@hpl.hp.com>
2010-03-10 16:43:17 -08:00
Glen Gibb d915e2b6e1 regress: support vlan port names with a period (.)
Change submitted by: Jean Tourrilhes <jt@hpl.hp.com>
2010-03-10 16:43:17 -08:00
Glen Gibb 12f93c9261 regress: formatting clean-ups
Change submitted by: Jean Tourrilhes <jt@hpl.hp.com>
2010-03-10 16:43:17 -08:00
Glen Gibb 99743eb3d2 regress: ToS code clean-up
Change submitted by: Jean Tourrilhes <jt@hpl.hp.com>
2010-03-10 16:43:17 -08:00
Glen Gibb 1fb5b36d3e regress: eliminate duplicate variable declarations
Change submitted by: Jean Tourrilhes <jt@hpl.hp.com>
2010-03-10 16:43:16 -08:00
Glen Gibb efb47d75c0 regress: --no_vlan to disable VLAN testing
VLAN not tested if --no_vlan option is specified. Allows tests to run
against switches that don't support VLAN tags in OpenFlow.

Change submitted by: Jean Tourrilhes <jt@hpl.hp.com>
2010-03-10 16:43:16 -08:00
Glen Gibb af01ea5408 regress: --no_barrier to disable barrier tests
Barrier tests can be disabled via the --no_barrier command line arg

Change submitted by: Jean Tourrilhes <jt@hpl.hp.com>
2010-03-10 16:43:10 -08:00
Glen Gibb 84bd3acc54 regress: --no_slicing cmd line arg
Add the ability to disable all slicing tests via --no_slicing flag

Change submitted by: Jean Tourrilhes <jt@hpl.hp.com>
2010-03-10 16:27:41 -08:00
Glen Gibb b585b4c1aa regress: add delays after switch config
Some OpenFlow switches need time to process switch config messages.
Sleep with user-specifiable delay.

Change submitted by: Jean Tourrilhes <jt@hpl.hp.com>
2010-03-10 16:27:41 -08:00
Glen Gibb 9bcf899001 regress: improve handling of --controller cmd line arg
Change submitted by: Jean Tourrilhes <jt@hpl.hp.com>
2010-03-10 16:27:41 -08:00
Glen Gibb ad4e98a1bd regress: --listener cmd line arg to specify dp connect str
Previouly set the string to connect to the datapath via platform (user
or user_veth). Option allows more complex connect strings to be specified.

Change submitted by: Jean Tourrilhes <jt@hpl.hp.com>
2010-03-10 16:27:41 -08:00
Glen Gibb 7e6ecbd095 regress: in_port/out_port cleanups
Don't do +1 when using in_port/out_port for generating MAC/IP addresses

Change submitted by: Jean Tourrilhes <jt@hpl.hp.com>
2010-03-10 16:27:41 -08:00
Glen Gibb 9f48a6f784 regress: new flow mod creation func
Added: create_flow_mod_from_udp_actionbytes
  - allows creation of a flow mod using an array of action bytes

Updated: combine_args
  - Return an array of action bytes instead of modifying a flow mod

Change submitted by: Jean Tourrilhes <jt@hpl.hp.com>
2010-03-10 16:27:40 -08:00
Glen Gibb 72de8f4ae2 regress: formatting fix
Change submitted by: Jean Tourrilhes <jt@hpl.hp.com>
2010-03-10 16:27:40 -08:00
Glen Gibb a22ea1d7e5 regress: Ensure VLAN VID is 12-bits in combine_args
Change submitted by: Jean Tourrilhes <jt@hpl.hp.com>
2010-03-10 16:27:40 -08:00
Glen Gibb 11001360a3 regress: del/show flow support
Rename del_flows to dpctl_del_flows
Add dpctl_show_flows command

Change submitted by: Jean Tourrilhes <jt@hpl.hp.com>
2010-03-10 16:27:40 -08:00
Glen Gibb da83b3ec93 regress: improve field description in compare calls
Add the message name to the field name in calls to compare. Also add
the packet type when applicable for packet ins.

Change submitted by: Jean Tourrilhes <jt@hpl.hp.com>
2010-03-10 16:27:40 -08:00
Glen Gibb 55290d4f17 regress: cmd line flag to execute single test
All tests are run by default. Provide a command line flag to run a
single test.

Change submitted by: Jean Tourrilhes <jt@hpl.hp.com>
2010-03-10 16:26:42 -08:00
Glen Gibb 3e501a2d30 regress: use sprintf to create strings of digits
Change submitted by: Jean Tourrilhes <jt@hpl.hp.com>
2010-03-03 17:04:22 -08:00
Glen Gibb feee67705a dpkg: changelog updated to 1.0.0 2010-02-26 15:33:44 -08:00
Glen Gibb 39ce0a9399 dpkg: changelog updated to 0.9.0-rev1 2010-02-26 15:28:49 -08:00
Glen Gibb 566419f54e dpkg: changelog updated to 0.8.0-rev4 2010-02-26 15:28:48 -08:00
Glen Gibb 81e9088ee0 dpkg: update ofprotocl executable name
secchan renamed to ofprotocol
2010-02-26 15:28:48 -08:00
Glen Gibb 20bf8b3074 dpkg: relax automake dependency
Allow automake 1.10 or 1.11 or greater
2010-02-26 15:28:48 -08:00
Glen Gibb 0c0ccb7c74 dpkg: restore dpkg support
Reverse changes in commit 7d1591a that broke support for
dpkg (specifically dpkg-buildpackage couldn't run as debian/control was
not automatically generated).
2010-02-26 15:28:48 -08:00
Glen Gibb 49581ff4eb secchan: Fix port status detection
secchan was reporting the *opposite* port status for port down/link
down.

Bug reported by: Takayuki Hama <t-hama@cb.jp.nec.com>
2010-02-24 16:13:17 -08:00
Glen Gibb 5ccca75a69 docs: Update ChangeLog to include 1.0.0 information 2009-12-31 16:00:53 -08:00
Glen Gibb 29ae784340 spec: update version to 1.0.0 from 1.0.0-RC 2009-12-31 16:00:33 -08:00
Glen Gibb bd9dd43554 spec: clarify actions field in ofp_switch_features
Clarify that the actions field is used only for reporting back the
standard actions defined in the Actions section of the document, not for
vendor-specific actions.
2009-12-31 15:51:34 -08:00
Glen Gibb d90824f0e8 spec: change version to indicate release candidate 2009-12-19 11:34:21 -08:00
Glen Gibb b2ad142a5d regress: automate dependency installation
Added support for 64-bit Ubuntu/Debian systems
2009-12-19 11:27:31 -08:00
Glen Gibb 3897db46e5 openflow.h: consistency fixes
Fixes:
 - use char instead of uint_8 for string (ofp_phy_port)
 - use [0] when declaring variable-length array
   (ofp_queue_get_config_reply)

Thanks to KK Yap (yapkke@stanford.edu) for reporting these issues.
2009-12-19 10:52:50 -08:00
Glen Gibb 17afd1c32b doc: note about slicing performance 2009-12-19 10:52:49 -08:00
Glen Gibb eb81428386 version: set version number to 0x01
First non-experimental version number
2009-12-19 10:52:43 -08:00
Glen Gibb 1da1d11cd3 spec: don't highlight slicing changes in blue 2009-12-18 15:12:08 -08:00
Glen Gibb 988e266a2a spec: add PDF version of packet flow chart 2009-12-18 15:12:08 -08:00
Glen Gibb 9521a635c0 ip-in-arp: add capability bit for feature
Added capability bit to indicate if the switch supports matching IP
fields in ARP packets.
2009-12-17 16:44:44 -08:00
Glen Gibb a3d56cc316 wireshark: Report queue stats capability 2009-12-17 16:44:44 -08:00
Glen Gibb b99e65d801 spec: indicate IP src/dst are extracted from ARP 2009-12-17 16:44:44 -08:00
Glen Gibb 67cfa2697f doc: Added README for kernel module
README file indicates that the kernel module is no longer included as
part of the reference implementation.
2009-12-17 16:44:44 -08:00
Glen Gibb fa5935a558 regress: automate dependency installation
Added support for Fedora
2009-12-17 16:44:43 -08:00
Glen Gibb 9d98a30148 regress: automate dependency installation
Added support for Debian
2009-12-17 13:17:09 -08:00
Glen Gibb b5f91a1a01 regress: automate dependency installation
Provide script to automatically install dependencies necessary for
running regression tests. Currently supported OSes:
 - Ubuntu
2009-12-17 13:17:09 -08:00
Glen Gibb 284a7bfb19 doc: document regression changes in 1.0 2009-12-17 13:17:08 -08:00
Glen Gibb ec0a4d19e8 build: remove kernel module from build
Commented out kernel module specific sections in configure.ac
Don't include datapath in SUBDIRS in Makefile.am
2009-12-15 21:23:33 -08:00
Glen Gibb b113ab3fe8 Clearify openflow.h comment
Updated comment for OFPET_PORT_MOD_FAILED that replaces "OFPT_PORT_MOD"
with a textual description of this message.
2009-12-15 11:17:04 -08:00
Glen Gibb 4d5a8686db version: bump version number to 1.0.0
Bump version to 1.0.0 in various files
2009-12-15 11:08:47 -08:00
Glen Gibb edb3be9e0f wireshark: dissect new errors
Dissect new errors introduced in commit by Justin Pettit: 951f4ca9
2009-12-14 17:56:38 -08:00
Glen Gibb f68c5b6f00 docs: remove kernel refs from INSTALL
Update the INSTALL document to remove reference to the kernel module
since the kernel module is no longer part of the reference design.
2009-12-14 17:20:53 -08:00
Glen Gibb 5de70b8a4f docs: updated README with dropped kernel info
Updated information in README to reflect decision to include only the
user-space switch in the reference implementation. The README notes that
the kenel and NetFPGA implementations will be distributed separately.
2009-12-14 17:12:04 -08:00
Glen Gibb ba8ca45217 spec: update version/title
Created a command to output the version number.
Changed the title on each page to "OpenFlow Switch Specification" and
"Version \ofversion"
2009-12-14 16:10:10 -08:00
Glen Gibb abe6db25f7 spec: Rename to reflect version 1.0.0 2009-12-14 13:27:54 -08:00
Glen Gibb b26a2e60c7 ChangeLog: document 1.0.0 changes 2009-12-14 13:22:24 -08:00
Glen Gibb f557a21416 Version: bump openflow wire version number 2009-12-11 18:16:21 -08:00
Glen Gibb 47a0ed66bc Merge branch 'devel/yiannisy/slicing'
Conflicts:
	include/openflow/openflow.h
	regress/lib/Perl5/OF/OFUtil.pm
	regress/projects/black_box/regress/tests.txt
	udatapath/datapath.c
	utilities/wireshark_dissectors/openflow/packet-openflow.c
2009-12-11 18:11:16 -08:00
Glen Gibb b2ea92008e Updated spec for selective port stats 2009-12-11 15:43:37 -08:00
Glen Gibb 22924bbfe9 Flow cookie regression tests
New regression tests based on existing tests:
 - test_flow_stats -> test_cookie_flow_stats
 - test_flow_expired -> test_cookie_flow_expired

New tests verify that the cookie value returned matches the cookie value
specified.
2009-12-11 15:43:37 -08:00
Glen Gibb a1e70c1bd1 Enable setting of cookies in forward_simple
forward_simple is a test function to forward a packet after setting up a
flow table entry. Allow a cookie to be specified.
2009-12-11 15:43:37 -08:00
Glen Gibb 00864063dc Support matching of cookies in flow expired
Flow cookies can be matched in flow expired messages. If the cookie is
not specified then no matching takes place.
2009-12-11 15:43:37 -08:00
Glen Gibb 80c577684f Ability to specify cookie when creating flow mods 2009-12-11 15:43:36 -08:00
Glen Gibb c1ad5c0a9c Wireshark disector changes for flow cookies
Added flow cookie processing for:
 - flow mod
 - flow removed
 - flow stats
2009-12-11 15:43:36 -08:00
Glen Gibb f506a0305c Updated spec for IP ToS matching
Note: Not sure that I like the current IP ToS matching where the lower
two bits are zero'd.
2009-12-11 15:43:36 -08:00
Glen Gibb a3a79e21e8 ARP matching support in Wireshark plugin
Added the ability to disect matches for ARP packets in Wireshark.
(Previously only the Ethertype was matched, not the ARP opcode or the IP
src/dest.)
2009-12-11 15:43:36 -08:00
Glen Gibb a75f9d48be Regression tests for ARP matching 2009-12-11 15:43:35 -08:00
Glen Gibb 77f0c84381 ARP functions in test libraries
Added the ability to test on ARP packets in the test libraries.
2009-12-11 15:43:35 -08:00
Glen Gibb 3da6276b55 ARP header len calc bug in test lib
ARP header length was incorrect, resulting in packets being incorrect lengths.
2009-12-11 15:43:35 -08:00
Glen Gibb 63c3a0e289 Copy necessary fields into flow for ARP matches
Previously missed the code to handle ARP matches in flow mods.
2009-12-11 15:43:35 -08:00
Glen Gibb bc2026689b Safety checks for ARP packets
Verify that ARP packets are for IP and that the protocol length is 4
before extracting source/destination IP addresses.
2009-12-11 15:43:35 -08:00
Glen Gibb cb0c5d2101 Whatespace consistency fix in README
Replaced tabs with spaces. (Note: Adding a separate commit since the
original commmit was pushed to master.)
2009-12-11 15:43:35 -08:00
Glen Gibb 39baa4058f Ensure flow_stats test returns an ofp_flow_stats
Fix the test_flow_stats test:
 - update the wildcard
 - specify valid IP addresses for src/dst
 - set the ethertype
 - verify that 1 ofp_flow_stats body is returned
2009-11-20 18:19:24 -08:00
Glen Gibb 13e6a2e26b Wireshark fix for flow_stats_request (out_port)
The wireshark dissector had not been updated to reflect the out_port
field in the flow_stats_request message. Added the out_port field.
2009-11-20 18:19:17 -08:00
Glen Gibb 9f15ba2113 Remove remote command execution support 2009-10-15 14:14:47 -07:00
Glen Gibb 0d2a787f01 Remove Nicira extension printing code 2009-10-15 14:14:47 -07:00
Glen Gibb f492a9d519 Remove tcp_flags/ip_tos tracking used by NetFlow 2009-10-15 14:14:47 -07:00
Glen Gibb 17af341ffe Don't perform 64-bit division in kernel
Replace 64-bit division (using '/') to call to do_div. This function is
designed for use in the kernel.
2009-10-15 14:14:47 -07:00
Glen Gibb ea288488c8 Replace ns_flow_end with ofp_flow_removed
datapath/udatapath now sends ofp_flow_removed messages instead of
nx_flow_end. This allows for the removal of secchan/flow-end.* as
flow-end message now no longer need to be translated.
2009-10-14 15:56:37 -07:00
Glen Gibb add3e639a9 Replace NXFER_* with OFPRR_* constants 2009-10-14 15:56:36 -07:00
Glen Gibb d1957f2054 s/nx_flow_end_reason/ofp_flow_removed_reason/g
Replaced references to custom Nicira flow end reason and replaced with
OpenFlow flow removed reason.
2009-10-14 15:56:36 -07:00
Glen Gibb d1f4c793fa Remove Nicira vendor action print code 2009-10-14 15:56:36 -07:00
Glen Gibb 2b1c086060 Remove Nicira action processing
No custom Nicira actions in reference code so remove handlers from codebase.
2009-10-14 15:56:36 -07:00
Glen Gibb 5f171ff224 Remove unused Nicira message processing code
No longer sending NXT_FLOW_END_CONFIG messages so remove code associated
with this message.
2009-10-14 15:56:36 -07:00
Glen Gibb ec0c97d6a1 Removed send_flow_end field from datapath struct
send_flow_end was a hold-over from 0.8.x releases. Version 0.9 removed the
datapath-wide send flow mod expire flag and replaced it by a per-flow flag.
This field was used by the NetFlow code to force notification of expires.
2009-10-14 15:56:36 -07:00
Glen Gibb 8c2e2dd667 Remove unused udp_open function
udp_open was used by NetLink code. Remove this function as the NetLink
code has been removed.
2009-10-14 15:56:36 -07:00
Glen Gibb cf13ab2dd9 Remove NetFlow from reference switch
Remove NetFlow code from reference switch, except in nicira-ext.h
2009-10-14 15:56:36 -07:00
Glen Gibb dcfbabe695 Unify big/little endian for PRIVATE vendor ext
Private vendor extension file had separate handling for big/little
endian. All places in the code where these values are put on/removed
from the wire are wrapped by hton* and ntoh* function calls, eliminating
the need for separate constants.
2009-10-14 15:56:36 -07:00
Glen Gibb 89941e139b Suport pretty-print for OFPRR_DELETE flow removed
If a flow is removed via a DELETE flow mod then print "delete" instead
of it's numerical value when an ofp_flow_removed is received.
2009-10-12 15:50:07 -07:00
Glen Gibb 875412fefd Flow expiry: Correct function proto for vendor_stats_init 2009-06-29 07:26:36 -07:00
Glen Gibb fcfd27a96d Flow expiry: Test that flow expires are sent on flow delete 2009-06-29 07:08:30 -07:00
Glen Gibb 463abf9568 Flow expiry: Added OFPER_DELETE to known expire reasons 2009-06-29 07:08:17 -07:00
Glen Gibb fddc939b07 Flow expiry: Send flow expires on delete
Set the reason to OFPER_DELETE
2009-06-29 07:08:01 -07:00
Glen Gibb 33905ad47a Flow expiry: Added test to verify OFPFF_SEND_FLOW_EXP flag 2009-06-29 07:07:19 -07:00
Glen Gibb 039dc27cd3 Flow expiry: Remove enable_flow_expirations from everything 2009-06-29 07:06:56 -07:00
Glen Gibb ef82985afe Flow expiry: Set flags when creating flow mods
Each flow mod now has a send_flow_expiry flag indicating whether an
expiry message should be generated. The global config setting no longer
applies.
2009-06-29 07:06:28 -07:00
Glen Gibb 77a367ecd4 Flow expiry: Dissector now uses per-flow expiry 2009-06-29 07:06:07 -07:00
Glen Gibb b2b952792e Flow expiry: Replace refernces to OFPC_SEND_FLOW_EXP refs
Replaced references to OFPC_SEND_FLOW_EXP in dpinst with flow->send_flow_exp
2009-06-29 07:05:27 -07:00
Glen Gibb b7e8127132 Flow expiry: Remove send_ofp_exp references 2009-06-29 07:05:11 -07:00
Glen Gibb 500fb599be Flow expiry: Send flow exp if the flow's send_exp flag is set 2009-06-29 07:04:48 -07:00
Glen Gibb 0b96028bea Flow expiry: Send flow exp only if flow's send expiry flag set 2009-06-29 07:04:34 -07:00
Glen Gibb b6309b3236 Flow expiry: Record the OFPFF_SEND_FLOW_EXP flag 2009-06-29 07:04:19 -07:00
Glen Gibb 44d43c2988 Flow expiry: Add send_flow_exp to nx_flow_end msg
Need to pass message that indicates whether to send flow expiry message
to the controller.
2009-06-29 07:04:02 -07:00