datapath: compat: Downstream the reciprocal_div.{c,h}.
authorAlex Wang <alexw@nicira.com>
Fri, 14 Mar 2014 18:47:30 +0000 (11:47 -0700)
committerAlex Wang <alexw@nicira.com>
Tue, 18 Mar 2014 00:07:54 +0000 (17:07 -0700)
commita27ce57b65959a3fb796ebb20958930624b0732e
tree48614b0a5d43a78171bb65f1dbc2eb62bc7cc68d
parent1a65ba854469c6746f944b2e784100e4175e0bea
datapath: compat: Downstream the reciprocal_div.{c,h}.

The reciprocal division code used in datapath is flawed.  The bug
has been fixed in the linux kernel repo in commit 809fa972fd(
reciprocal_divide: update/correction of the algorithm).

This commit downstreams the reciprocal_div.{c,h} from the linux
kernel repo.

Signed-off-by: Alex Wang <alexw@nicira.com>
Reviewed-by: Thomas Graf <tgraf@redhat.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
datapath/linux/Modules.mk
datapath/linux/compat/flex_array.c
datapath/linux/compat/include/linux/flex_array.h
datapath/linux/compat/include/linux/reciprocal_div.h [new file with mode: 0644]
datapath/linux/compat/reciprocal_div.c