Commit Graph
238 Commits
Author SHA1 Message Date
David Erickson 29b98a4a4e Fixed a linking collision where jiffies have been backported to kernel
2.6.18-53 which is included in CENTOS 5.1.
2008-06-23 16:22:49 -07:00
jiangzhu 9d11a3bc70 mpis related changes. 2008-06-22 23:49:12 -07:00
David Erickson 54ffb5a7f6 Changed the naming of the module to correspond with the build system name change 2008-06-21 18:39:08 -07:00
David Erickson 23b028c833 Added the base directory of the hardware table modules to the include path for compilation.
Renamed the base directory of a hardware table module from hwtable-* to hwtable_* to alleviate
the KBUILD_NODNAME string munging that occurs during compilation which changes all -'s to _'s
causing the bug that when you load the kernel module then try to remove it with the same
filename, it will fail.
2008-06-21 18:26:25 -07:00
David Erickson 16dbc5e770 Removed a merge remnant 2008-06-21 16:12:33 -07:00
David Erickson b8268ab882 First NF2 Hardware Table commit, functionally passes tests as of 06-21-08. 2008-06-21 15:59:37 -07:00
Ben Pfaff 62fd5fc447 Implement Debian-based packaging and deployment infrastructure. 2008-06-13 13:36:00 -07:00
Ben Pfaff 07f8d9645c Bring manpages and usage messages up-to-date. 2008-06-13 13:30:39 -07:00
Ben Pfaff 24ff8279e7 Allow priority to be specified in dpctl del-flows command. 2008-06-13 13:30:39 -07:00
Ben Pfaff 72223f2a8b Make flow specifications more general in dpctl:
- More special port names.
- Allow fields to be comma-separated, for use on command line.
- Allow ANY as a synonym for *, to avoid globbing on command line.
2008-06-13 13:30:34 -07:00
Ben Pfaff fe867d8d71 Add --detach and --pidfile options to daemons. 2008-06-13 13:03:51 -07:00
Ben Pfaff e0763dc037 Set fail-open explicitly as default.
It was the default accidentally before, because FAIL_OPEN happened
to have the value 0.
2008-06-13 10:16:58 -07:00
Justin Pettit 8c0321d913 Have the switch list all the stats types it support in the capabilities field.
Thanks to Brandon for pointing this out.
2008-06-12 20:40:02 -07:00
Justin Pettit 3df9750d38 Fix identification of SNAP packets.
The result of the memcmp that checks whether the OUI is all zeroes was the reverse of what it should have been.  This checkin also removes the masking of the least signficant bit from SAP checks, since it's not need for checking SNAP.

Thanks to Masa and Brandon for catching this.
2008-06-12 20:07:11 -07:00
Ben Pfaff 4a513559a8 Fix "NOHZ: local_softirq_pending 08" message.
Only call netif_rx within an interrupt.
Outside an interrupt, netif_rx_in has to be used.
2008-06-10 14:41:04 -07:00
Ben Pfaff 9446ee791c Move manpages from man directory to next to their programs. 2008-06-09 11:01:46 -07:00
Ben Pfaff 494917a9ee Add "fail open" feature to secchan. 2008-06-09 10:35:49 -07:00
Ben Pfaff 7b351ea076 Factor learning switch out of controller into library.
This prepares for adding "fail-open" support to the secchan, which
will require the secchan to act as a learning switch.
2008-06-09 10:27:49 -07:00
Ben Pfaff 8f4da69c16 Only log unprocessed packets in the controller if debugging enabled.
Otherwise OFP_FLOW_EXPIRED messages tend to swamp the console after
a while.
2008-06-09 10:27:49 -07:00
Ben Pfaff 6787fab28f Fix "waiting for of0 to become free" message on deldp.
Thanks to Murphy for help debugging this.
2008-06-05 13:38:09 -07:00
Ben Pfaff 2f90b053c1 Delete unneeded line. 2008-06-04 16:14:39 -07:00
Ben Pfaff fac543387f Fix "make dist" in datapath/linux-2.4 when --with-l24 not used.
This makes the linux-2.4 Makefile.main.in structure much more
similar to the linux-2.6 Makefile.main.in.
2008-06-04 16:14:23 -07:00
Ben Pfaff 0d72ebf26b Make boot.sh give an error if pkg-config is not installed. 2008-06-04 15:57:33 -07:00
Ben Pfaff 0dadf1fe0e Improve formatting of manpage. 2008-06-04 12:30:49 -07:00
Ben Pfaff aab48e6fe9 Prevent deadlock in OpenSSL. 2008-06-04 09:37:08 -07:00
Justin Pettit a3479a759d Fixed typos in dummy hardware table example that caused compilation errors.
This still has a license conflict with GPL-only "call_rcu" function.  We'll figure this out later.  Thanks for pointing it out, Ben!
2008-06-04 00:40:05 -07:00
Ben Pfaff 34b307bea6 Use kernel build system for linux-2.4.
Based on changes originally by Bobby Holley <bobbyholley@stanford.edu>.
2008-06-03 14:02:13 -07:00
Justin Pettit be92f541ae Define skb_reset_mac_header for Linux 2.6 kernels older than 2.6.22. 2008-06-02 21:30:20 -07:00
Ben Pfaff fc51dcfff9 Don't oops on deldp, by avoiding use-after-free on net_bridge_port. 2008-06-02 20:18:38 -07:00
Ben Pfaff 0b75446a26 Don't try to destroy dp_dev while the local port holds a reference to it.
Fixes a message output at deldp time:
unregister_netdevice: waiting for of0 to become free. Usage count = 1

Thanks to Murphy and Justin for reporting this bug.
2008-06-02 20:18:38 -07:00
Ben Pfaff 913e36d3f6 Free ofX network device when we're done with it. 2008-06-02 20:18:38 -07:00
Ben Pfaff 26e5b3af27 Avoid wild pointer write in del_switch_port(). 2008-06-02 20:18:38 -07:00
Ben Pfaff cdb3bb9ebf Remove vestigial support for auto-running unit tests.
These hadn't worked for a long time.
2008-06-02 17:06:52 -07:00
Ben Pfaff 0d5760232d Fix "make dist" by distributing some more files. 2008-06-02 17:03:45 -07:00
Justin Pettit 048d68dcd5 Make capitalization consistent. 2008-06-01 22:32:59 -07:00
Ben Pfaff d558974c4a Fix "make clean" to delete symlinks created by "make". 2008-05-29 12:55:55 -07:00
Ben Pfaff 3d8bf698e7 Ignore NLMSG_DONE Netlink messages in dpif.
Otherwise the secchan considers the NLMSG_DONE at the end of a stats
dump to be an error and disconnects from the netlink connection.

Thanks to Martin for discovering the problem.
2008-05-28 16:03:36 -07:00
Ben Pfaff 051ea3978c Fix use-after-free bug. 2008-05-28 16:02:00 -07:00
Ben Pfaff c8fda0a552 Fix typo in error message. 2008-05-28 16:01:49 -07:00
Ben Pfaff b2f43905ea Make in-band communication work. 2008-05-28 10:46:54 -07:00
Ben Pfaff 59ba307325 Make the OFPP_LOCAL port work in the kernel OpenFlow implementation. 2008-05-28 10:46:54 -07:00
Ben Pfaff 711c48de9d Break MAC learning out of controller into library.
This is preparation for use of MAC learning in the secure channel.
2008-05-28 10:46:54 -07:00
Ben Pfaff 23e054dcb6 New functions for getting and setting network device flags.
This allows us to open network devices without bringing them up
and setting them for promiscuous mode, which will be useful in the
secchan for in-band communication.
2008-05-28 10:46:54 -07:00
Ben Pfaff 6b8436f66b Expose device IP addresses through netdev.
This will be useful for the secure channel later.
2008-05-28 10:46:54 -07:00
Ben Pfaff 735683ac61 Move netdev from switch to lib.
This is in preparation for the secure channel wanting to access
network devices.
2008-05-28 10:46:54 -07:00
Ben Pfaff e5bbe3bcc8 Print actions in ofp_flow_mod messages. 2008-05-28 10:46:54 -07:00
Ben Pfaff 0f81e793e5 Pretty-print port numbers when printing ofp_switch_features messages. 2008-05-28 10:46:54 -07:00
Ben Pfaff cf46e1e8a2 Print special ports by name in ofp_packet_in messages. 2008-05-28 09:58:23 -07:00
Ben Pfaff bdac0887d2 Put newline before packet info in ofp_packet_out pretty-print output. 2008-05-28 09:58:22 -07:00
Ben Pfaff 6c08c24913 Print more special ports by name in ofp-print.c. 2008-05-28 09:58:22 -07:00