Commit Graph
178 Commits
Author SHA1 Message Date
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
Ben Pfaff b9cdc64135 Add missing calls to htons/ntohs in accesses to miss_send_len.
Thanks to Justin for pointing out the problem.
2008-04-15 09:56:36 -07:00
Justin Pettit bbbc6bc992 MIPS fixes based on suggestions from Jiang. 2008-04-14 00:10:48 -07:00
Justin Pettit e28564c5fa Add support for OFPP_TABLE virtual port. 2008-04-11 17:40:05 -07:00
Justin Pettit 00529de1f0 Fix compilation error in 2.4.20 kernels. 2008-04-11 14:40:29 -07:00
Justin Pettit 6d188895dc Remove MAC table support. 2008-04-10 18:31:44 -07:00
Justin Pettit 0a9024a2d7 Changes based on feedback from GigaFin. 2008-04-10 15:50:25 -07:00
Ben Pfaff 149893aeeb Don't read info->attrs[DP_GENL_A_OPENFLOW] twice, unnecessarily. 2008-04-07 13:55:47 -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 4fc7e7d11f Send replies to OpenFlow requests only to the sender. 2008-04-04 16:22:23 -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
Justin Pettit 60bb88023b By more liberal (egads!) about allocating space for netlink messages. 2008-04-02 16:48:29 -07:00
Ben Pfaff ebb1d65cf7 Allow timeout implementations to block, by using a kernel thread instead of a timer.
This is required on the Quanta platform, which needs to down a semaphore
inside the timeout implementation.

Also, add a 2.4 compatibility implementation of kthread so that both
2.4 and 2.6 can use the kthread API.
2008-04-01 13:01:07 -07:00
Ben Pfaff 15bd8ce4ba Fix typo in comment. 2008-04-01 13:01:07 -07:00
Justin Pettit 1558120be7 - Fixed endian issue with action type. Thanks, Ben!
- Removed BUG() call that could be maliciously/accidentally triggered by a faulty controller.
- Switched from __constant_htons to htons, which seems preferred.
2008-03-30 01:41:42 -07:00
Justin Pettit 3c08544960 Fixed some tab/space issues. 2008-03-30 01:38:01 -07:00
Justin Pettit 005486c773 Fixed some space/tab issues. 2008-03-30 01:37:33 -07:00
Justin Pettit 214eecdc74 Remove dead "t" directory. 2008-03-30 00:39:54 -07:00
Justin Pettit e943605b31 Remove dead linux-2.6-uml directory. 2008-03-28 00:04:09 -07:00
Justin Pettit de6e0a76a3 Update 2007 copyrights to include 2008. 2008-03-27 23:51:58 -07:00
Ben Pfaff 8dae627930 Initialize pad byte in ofp_packet_in messages, to avoid leaking kernel state. 2008-03-27 17:50:33 -07:00
Justin Pettit 981a0b3dd7 Merge branch 'master' of nicira.dyndns.org:/srv/git/openflow 2008-03-19 14:01:07 -07:00
Justin Pettit 8368c6e6e4 - Increase version to 0.1.9.
- Remove support for UML.
2008-03-19 14:00:44 -07:00
Ben Pfaff 3ba4a4a7f5 Ignore lots of files. 2008-03-10 17:18:36 -07:00
Ben Pfaff 810a7d3644 Don't treat $(CC) as a list of compiler candidates if provided by user.
Otherwise, if a multi-word $(CC) is provided by the user, such as
"gcc -m32", then we test each word as a compiler.  "-m32" then gives
you an error from the shell about "-3" not being a valid option.
2008-03-06 09:45:28 -08:00
Martin Casado 468e00132f Initial import 2008-03-04 13:12:53 -08:00