[ovs-dev] [netlink v4+ 0/3] kernel compat fixes for netlink v4 series

Ben Pfaff blp at nicira.com
Wed Jan 12 21:23:01 UTC 2011


Justin reported that the netlink v4 series didn't build on Linux
2.6.24.  I did some builds on 2.6.18 plain, 2.6.18 with Xen patches,
and on a few others, and came up with this series.

Although this is presented as a new set of patches, they would in fact
be broken up and squashed in at appropriate parts in the series, to
avoid breaking the build in the middle.

The new version of VERIFY_NUL_STRING essentially replaces patch 26
in the netlink v4 series "Make VERIFY_NUL_STRING return a negative
error code."

Ben Pfaff (3):
  datapath: Backport genl_register_family_with_ops().
  datapath: Make VERIFY_NUL_STRING verify the string length too.
  datapath: Backport more Netlink functions.

 acinclude.m4                                       |    3 +-
 datapath/brc_procfs.c                              |   18 +-----
 datapath/brc_procfs.h                              |    5 +-
 datapath/brcompat.c                                |   61 ++++++++------------
 datapath/datapath.c                                |   11 +++-
 datapath/linux-2.6/compat-2.6/genetlink.inc        |   47 +++++++++++++++
 .../linux-2.6/compat-2.6/include/net/genetlink.h   |    5 ++
 .../linux-2.6/compat-2.6/include/net/netlink.h     |   40 +++++++++++--
 datapath/vport-patch.c                             |    4 +-
 9 files changed, 131 insertions(+), 63 deletions(-)





More information about the dev mailing list