[ovs-git] Open vSwitch: datapath: Backport flex_arrays. (master)

dev at openvswitch.org dev at openvswitch.org
Fri Jul 29 00:14:36 UTC 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, master has been updated
       via  135faefe4af624489ac310810a5ffb5223606252 (commit)
       via  466d7efa366fddac616c537507b56e319965b63c (commit)
       via  01308c2bb5d7970c59ea3a61554ce58736dcc2a9 (commit)
      from  db5b4525b20e0fd6a079831638b5eb3f9fb131f2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 135faefe4af624489ac310810a5ffb5223606252
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=135faefe4af624489ac310810a5ffb5223606252
Author: Jesse Gross <jesse at nicira.com>
		
datapath: Backport flex_arrays.
		
flex_arrays didn't exist at all until 2.6.30, weren't exported to modules
until 2.6.38, and performed poorly until 3.0, so this backports the
functionality to older kernels.

Signed-off-by: Jesse Gross <jesse at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>


commit 466d7efa366fddac616c537507b56e319965b63c
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=466d7efa366fddac616c537507b56e319965b63c
Author: Jesse Gross <jesse at nicira.com>
		
datapath: Don't pass __GFP_ZERO to kmalloc on older kernels.
		
On new kernels kzalloc() is simply a wrapper around kmalloc with
the addition of the __GFP_ZERO flag.  flex_arrays take advantage
of this by expecting the user to just pass in this flag if they
want the memory to be zeroed.  However, before 2.6.23, kzalloc()
was a function in its own right and kmalloc really didn't like
receiving __GFP_ZERO.  This overrides kmalloc() to intercept the
flags and direct the call to the right function.

Signed-off-by: Jesse Gross <jesse at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>


commit 01308c2bb5d7970c59ea3a61554ce58736dcc2a9
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=01308c2bb5d7970c59ea3a61554ce58736dcc2a9
Author: Jesse Gross <jesse at nicira.com>
		
datapath: Backport reciprocal division.
		
The reciprocal division library did not exist until 2.6.20 and is
not currently exported in any version, so this backports it.

Signed-off-by: Jesse Gross <jesse at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>


-----------------------------------------------------------------------

Summary of changes:
 datapath/linux/.gitignore                          |    2 +
 datapath/linux/Modules.mk                          |    5 +
 datapath/linux/compat/flex_array.c                 |  390 ++++++++++++++++++++
 datapath/linux/compat/include/linux/flex_array.h   |   86 +++++
 datapath/linux/compat/include/linux/poison.h       |   11 +
 .../linux/compat/include/linux/reciprocal_div.h    |   40 ++
 datapath/linux/compat/include/linux/slab.h         |   17 +
 datapath/linux/compat/reciprocal_div.c             |    9 +
 8 files changed, 560 insertions(+), 0 deletions(-)
 create mode 100644 datapath/linux/compat/flex_array.c
 create mode 100644 datapath/linux/compat/include/linux/flex_array.h
 create mode 100644 datapath/linux/compat/include/linux/poison.h
 create mode 100644 datapath/linux/compat/include/linux/reciprocal_div.h
 create mode 100644 datapath/linux/compat/reciprocal_div.c


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list