Ben Pfaff
67a603dde8
Make openflow.h SWIG-friendly.
2008-07-21 11:39:39 -07:00
Ben Pfaff
e88c18152d
Assert on structure sizes in openflow.h.
...
This causes the build to fail if structures are not the sizes that we
expect.
2008-07-17 09:47:25 -07:00
Ben Pfaff
b993fa9c2b
Adjust OpenFlow to have same structure layout on 32- and 64-bit platforms.
...
Pointed out by "Brandon Heller" <brandon.heller@gmail.com >.
2008-07-17 09:47:25 -07:00
Ben Pfaff
258f32a084
Respond to echo requests in OpenFlow implementations.
...
Nothing yet sends such requests. This is preparation for their
use in following commits.
2008-07-01 10:51:50 -07:00
Ben Pfaff
59ba307325
Make the OFPP_LOCAL port work in the kernel OpenFlow implementation.
2008-05-28 10:46:54 -07:00
Justin Pettit
2f009daf82
Clean-up OpenFlow main header a bit.
2008-05-04 21:05:51 -07:00
Ben Pfaff
f7bf3916ff
Implement aggregate flow statistics in kernel and userspace switches.
2008-05-02 16:58:33 -07:00
Ben Pfaff
4f5b4efc54
Send actions as part of flow statistics messages.
2008-05-02 10:58:53 -07:00
Ben Pfaff
2e12784892
Add max_idle field to flow stats messages.
2008-05-02 10:58:52 -07:00
Justin Pettit
917160e384
- Add priority to flow expiration messages.
...
- Clear contents of "pad" field port status messages.
2008-05-01 17:11:29 -07:00
Ben Pfaff
3b9c97ee01
Implement new statistics format in kernel and userspace switches.
...
This change really cuts the muster!
2008-05-01 17:04:44 -07:00
Justin Pettit
66b5c90376
- Add support for OpenFlow error message type.
...
- Ensure OpenFlow messages fit in 16-bit length field.
2008-04-30 17:38:03 -07:00
Justin Pettit
d1d2f3f321
- On flow entries with wildcards, match priority field when doing a "strict" delete.
...
- Remove group_id from flow entries.
- Show priority when print flow mod messages.
2008-04-29 15:00:28 -07:00
Ben Pfaff
3ee68a5b11
Fix openflow.h compilation with GCC 2.95.
...
Necessary because older Linux 2.4 releases will only compile with GCC 2.95.
2008-04-29 10:19:36 -07:00
Ben Pfaff
9b97611f42
Fix typo in comment.
2008-04-28 13:52:27 -07:00
Justin Pettit
44e9d4f5fc
Clean-up related to supporting priorities...mostly suggestions from Ben.
2008-04-26 14:27:32 -07:00
Justin Pettit
bfe3b4df89
- Add support for flow entry priorities.
...
- Fix "flow-add" action for dpctl.
2008-04-26 14:08:41 -07:00
Justin Pettit
fc2925fecf
Add priority field to flow_mod...code to support this forthcoming.
2008-04-21 18:13:42 -07:00
Justin Pettit
0d3a0643c4
Switch from "stat" to "stats" everywhere.
2008-04-16 15:38:25 -07:00
Justin Pettit
541d0fee0d
- Keep datapath config in host-byte order (and fix a couple of bugs related to this).
...
- Fix type for "get config" replies.
2008-04-16 14:09:27 -07:00
Justin Pettit
17c21631d5
Use new OpenFlow protocol versioning scheme.
2008-04-16 10:39:21 -07:00
Justin Pettit
d485c3f0ce
Finish removing references to the MAC table.
2008-04-15 13:42:35 -07:00
Ben Pfaff
6f8d45bf7d
Merge remote branch 'repo/master' into stats
...
Conflicts:
datapath/table-mac.c
2008-04-15 09:57:38 -07:00
Ben Pfaff
d2552c15f3
Make table_id in OpenFlow messages 8 bits, since 255 should be enough.
...
Suggested by Justin.
2008-04-15 09:56:46 -07:00
Ben Pfaff
0a1a667973
Make duration in ofp_flow_stats a 32-bit quantity (instead of 16).
...
Otherwise duration is capped at under 24 hours.
Suggested by Justin.
2008-04-15 09:56:41 -07:00
Justin Pettit
e28564c5fa
Add support for OFPP_TABLE virtual port.
2008-04-11 17:40:05 -07:00
Ben Pfaff
f6cae73ec3
Implement OpenFlow statistics in switches and in dpctl.
...
This has two notable omissions. First, only at most 4k of flow statistics
are reported. Second, aggregate statistics are not yet supported. Both
of these are fairly easily fixable, just not fixed yet.
2008-04-04 16:22:40 -07:00
Ben Pfaff
60a87c9b00
Break data_hello and control_hello messages into multiple messages.
...
We want to allow multiple OpenFlow connections to a switch, so that
dpctl and other management tools can also connect to a switch that
is connecte to the controller. These tools will want to fetch the
information in the data_hello message, but currently this can only
be done by sending a control_hello message, which changes the
switch configuration state. So breaking the hello messages up into
multiple different messages, only some of which affect configuration
state, cures the problem.
Also, clean up the kernel datapath a bit, by adding helper functions
for allocating and resizing Generic Netlink messages that encapsulate
OpenFlow messages.
2008-04-04 16:22:21 -07:00
casado
3f0201adb5
Update copyright on all non-GPL files
2008-03-27 20:12:18 -07:00
Ben Pfaff
fa20a0ed56
Add tag to enum for OpenFlow statistics type.
2008-03-27 17:50:33 -07:00
Martin Casado
468e00132f
Initial import
2008-03-04 13:12:53 -08:00