![]() |
ViewsCode Review GuidelinesFrom OpenFlow WikiAll code distributed with post-v0.9 OpenFlow reference implementations is expected to complete at least one review. This page includes guidelines for doing a code review, plus pointers to git tools to clean up commit sequences before review. Code review is intended to find bugs early and maintain consistency. As a side benefit, reviews are often a way to learn how to code better. As a review submitter, please try to make it as easy as possible for the reviewer to understand (1) what you changed and (2) why you changed it, if not obvious. This generally means submitting a patch series where changes are at the right granularity, and requesting review before your commit series becomes a monster. Commit Guidelines[1] Read the first section, "Commit Guidelines", roughly 2 screens worth of text. Notes from Open vSwitch SubmittingPatches fileThanks to Ben Pfaff for noting these. Before you send patches at all, make sure that each patch makes sense. In particular:
Testing is also important:
... The description should include:
There is no need to describe what the patch actually changed, if the reader can see it for himself. If the patch refers to a commit already in the Open vSwitch repository, please include both the commit number and the subject of the patch, e.g. 'commit 632d136c "vswitch: Remove restriction on datapath names."'. Amending Git History[2] With a little practice, you can edit, reorder, split, and merge commits in git. This is a nice description on how. And here's another description of how: [3] |
Quick NavigationOpenFlow White PaperOpenFlow Demo Video![]() Watch the Demo that received the best demo award at SIGCOMM 2008. About OpenFlow OpenFlow is supported bythe Stanford Clean Slate Program. Wiki ToolsPersonal toolsProjects |