Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

next: Collected changes for the v2016.04 release #855

Merged
merged 100 commits into from
Apr 5, 2016
Merged

next: Collected changes for the v2016.04 release #855

merged 100 commits into from
Apr 5, 2016

Conversation

lukego
Copy link
Member

@lukego lukego commented Apr 1, 2016

@eugeneia Here is a release candidate for the v2016.04 release. Sorry to deliver it so late!

I have now renamed the Github repository from snabbswitch to snabb for consistency with this release (#852). Hopefully that doesn't break anything: Github seems to have the redirection cases covered.

I also made the organization name lowercase (SnabbCo -> snabbco) just to make the canonical version easier to type. Github organization names are not case sensitive so I don't expect trouble here.

Looks like the snabbdoc CI is failing perhaps due to script/makefile changes. action needed?

lukego and others added 30 commits February 11, 2016 10:00
Provide a clear compilation error on platforms that don't have a 64bit
integer size, for example i386. Include a link to porting information
so that the user will understand that this is not an arbitrary
restriction.
Rationale: people are smart and will figure.
Using the method suggested by Matthew Emerson on Github #752.
…ra-next

Have a clear compile-time error on non-64-bit platforms.
This will be used by the lwAFTR.
Currently shm.map() will create the file and any containing directories
if it does not exist.  This is not so great, so I split it into separate
open() and create() functions, adapt all callers, and remove map() from
the public interface of the shm module.
This commit adds a histogram facility that can record the distribution
of different sampled magnitudes.  In particular, it is useful for
recording distributions of times.  Histograms can be mapped into
/var/run/snabb, where they can be analyzed by a separate process.

This commit also wires up the app.breathe() loop to record latencies for
its breath cycles into a well-known
file (/var/run/snabb/PID/engine/latency), and wires up "snabb top" to do
some basic statistics on this data.
The idea is, there are lots of different kinds of analyses you might
want to do on a histogram, and it's too early to canonicalize one of
them.  Better to build your own on top of iterate().

Also adds tests for iterate().
eugeneia and others added 23 commits March 17, 2016 19:00
Previously process-markdown took only an input file argument and
printed the result to standard output. Now it takes both an input file
and output file argument.

The important change is that the '.images' directory containing ditaa
images is now created in the same directory as the output file, and
that directory is created if necessary.

Previously the '.images' was created in the source directory and in
practice this was only the right thing if the output file happened to
also be in that directory. This was true the past when we were
converting foo.src.md -> foo.md but is not true anymore now that we
convert foo.md -> obj/foo.md.

src/Makefile is updated to reflect this. This also made it possible to
drop the Makefile dependency from the manual on the 'snabb'
executable, which was an ugly hack intended to ensure that the
required directory tree in obj/ had been created somehow. Now the
process-markdown script automatically creates any required output
directory.
Had used 'readlink -f' to canonicalize input and output paths.
However, this fails when the output directory does not exist yet.

Now uses 'readlink -m' instead to avoid this problem.
Added note to branches.md that branch 'nix' feeds upstream to
'kbara-next' following ack from kbara on #835.
Dropped the part of #833 that changes the chardev names in QEMU command
line. See review comments by Nikolay Nikolaev on #833.
(also removed a stray conflict marker that I must have missed earlier.)
These scripts were only intended for reference and don't have any test
coverage so I do not think they are worth maintaining e.g. to replace
'snabbswitch' with 'snabb' and think about the potential impact of
that change.

If people want to see working init scripts we could refer them to the
NixOS ones that now have CI coverage.
This was added for backwards compatibility when we renamed the binary
from 'snabbswitch' to 'snabb' but that was a long time ago now.
Note: This changes the behavior of the program.
This change assumes that the Github repository Igalia/snabbswitch will
be renamed to Igalia/snabb.

Note: Github will redirect the old name automatically so old links and
git checkouts should not be disrupted.
This update has been done manually. There were a few instances where
the name 'snabbswitch' should be preserved: links to external sites
and handling of older repo versions in snabbdoc.
|| ((cd $(repo_path)/src && git checkout $1 && make obj/doc/snabbswitch.html) \
&& mv $(repo_path)/src/obj/doc/snabbswitch.html $2)
|| ((cd $(repo_path)/src && git checkout $1 && make obj/doc/snabb.html) \
&& mv $(repo_path)/src/obj/doc/snabb.html $2)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't work

  1. for this PR because the old version of SnabbDoc is run
  2. for other PRs because they might be behind next

See #856 for a fix targeting next. I think merging that PR should make the CI pass.

@eugeneia eugeneia self-assigned this Apr 5, 2016
@eugeneia eugeneia merged commit 2ddc8b3 into master Apr 5, 2016
eugeneia added a commit that referenced this pull request Apr 5, 2016
dpino added a commit to dpino/snabb that referenced this pull request Jun 30, 2017
Replace missing function 'table_count' for 'table_size'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants