[ovs-git] [openvswitch/ovs] cab504: lib: Move compiler.h to <openvswitch/compiler.h>

GitHub noreply at github.com
Mon Dec 15 13:53:09 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: cab5044987845e66dbe030eb1384d58cc5a66fc9
      https://github.com/openvswitch/ovs/commit/cab5044987845e66dbe030eb1384d58cc5a66fc9
  Author: Thomas Graf <tgraf at noironetworks.com>
  Date:   2014-12-15 (Mon, 15 Dec 2014)

  Changed paths:
    M include/openvswitch/automake.mk
    A include/openvswitch/compiler.h
    M lib/bundle.c
    M lib/bundle.h
    M lib/command-line.h
    M lib/compiler.h
    M lib/dynamic-string.h
    M lib/json.c
    M lib/learn.c
    M lib/learn.h
    M lib/multipath.c
    M lib/multipath.h
    M lib/nx-match.c
    M lib/nx-match.h
    M lib/ofp-actions.c
    M lib/ofp-actions.h
    M lib/ofp-parse.c
    M lib/ofp-parse.h
    M lib/ofp-print.c
    M lib/ofp-util.c
    M lib/ovsdb-data.c
    M lib/ovsdb-data.h
    M lib/ovsdb-error.h
    M lib/ovsdb-idl.h
    M lib/ovsdb-parser.h
    M lib/ovsdb-types.h
    M lib/smap.h
    M lib/stream-nossl.c
    M lib/table.h
    M lib/unicode.h
    M lib/util.h
    M lib/vlog.c
    M lib/vlog.h
    M ofproto/ofproto-dpif.c
    M ovsdb/column.h
    M ovsdb/condition.c
    M ovsdb/condition.h
    M ovsdb/execution.c
    M ovsdb/file.h
    M ovsdb/jsonrpc-server.c
    M ovsdb/log.h
    M ovsdb/mutation.c
    M ovsdb/mutation.h
    M ovsdb/ovsdb-client.c
    M ovsdb/ovsdb-server.c
    M ovsdb/ovsdb-tool.c
    M ovsdb/ovsdb.c
    M ovsdb/ovsdb.h
    M ovsdb/row.h
    M ovsdb/table.h
    M ovsdb/transaction.c
    M ovsdb/transaction.h
    M tests/test-jsonrpc.c
    M tests/test-netflow.c
    M tests/test-ovsdb.c
    M tests/test-rstp.c
    M tests/test-sflow.c
    M tests/test-stp.c
    M utilities/ovs-dpctl.c
    M utilities/ovs-ofctl.c
    M utilities/ovs-testcontroller.c
    M utilities/ovs-vsctl.c
    M vswitchd/ovs-vswitchd.c
    M vswitchd/system-stats.c
    M vtep/vtep-ctl.c

  Log Message:
  -----------
  lib: Move compiler.h to <openvswitch/compiler.h>

The following macros are renamed to avoid conflicts with other headers:
 * WARN_UNUSED_RESULT to OVS_WARN_UNUSED_RESULT
 * PRINTF_FORMAT to OVS_PRINTF_FORMAT
 * NO_RETURN to OVS_NO_RETURN

Signed-off-by: Thomas Graf <tgraf at noironetworks.com>
Acked-by: Ben Pfaff <blp at nicira.com>


  Commit: 8f3676cfce4e6a9e8428d5f171d6246622486fbc
      https://github.com/openvswitch/ovs/commit/8f3676cfce4e6a9e8428d5f171d6246622486fbc
  Author: Thomas Graf <tgraf at noironetworks.com>
  Date:   2014-12-15 (Mon, 15 Dec 2014)

  Changed paths:
    M include/openvswitch/util.h
    M lib/backtrace.h
    M lib/hmap.h
    M lib/latch.h
    M lib/ovs-thread.h
    M lib/poll-loop.h
    M lib/seq.h
    M lib/timer.h
    M lib/util.h

  Log Message:
  -----------
  lib: Expose SOURCE_LOCATOR as OVS_SOURCE_LOACATOR

Required to expose headers which depend on SOURCE_LOCATOR

Signed-off-by: Thomas Graf <tgraf at noironetworks.com>
Acked-by: Ben Pfaff <blp at nicira.com>


  Commit: 904e0804430e5526752fe75637df48a3e9467deb
      https://github.com/openvswitch/ovs/commit/904e0804430e5526752fe75637df48a3e9467deb
  Author: Thomas Graf <tgraf at noironetworks.com>
  Date:   2014-12-15 (Mon, 15 Dec 2014)

  Changed paths:
    M include/openvswitch/automake.mk
    A include/openvswitch/thread.h
    M lib/ovs-thread.h

  Log Message:
  -----------
  lib: Expose ovs_mutex and ovsthread_once in <openvswitch/thread.h>

This picks the ovs_mutex and ovsthread_once API from lib/ovs-thread.h
and exposes it in <openvswitch/thread.h>.

Signed-off-by: Thomas Graf <tgraf at noironetworks.com>
Acked-by: Ben Pfaff <blp at nicira.com>


  Commit: d668c4a94192269235510fa7d23e324ed1155a78
      https://github.com/openvswitch/ovs/commit/d668c4a94192269235510fa7d23e324ed1155a78
  Author: Thomas Graf <tgraf at noironetworks.com>
  Date:   2014-12-15 (Mon, 15 Dec 2014)

  Changed paths:
    M include/openvswitch/automake.mk
    A include/openvswitch/token-bucket.h
    M lib/automake.mk
    M lib/token-bucket.c
    R lib/token-bucket.h
    M lib/vlog.h
    M ofproto/pinsched.c

  Log Message:
  -----------
  lib: Move token-bucket.h to <openvswitch/token-bucket.h>

Signed-off-by: Thomas Graf <tgraf at noironetworks.com>
Acked-by: Ben Pfaff <blp at nicira.com>


  Commit: 8c7be52d10a1e9a4745249a4a94540df13d847a3
      https://github.com/openvswitch/ovs/commit/8c7be52d10a1e9a4745249a4a94540df13d847a3
  Author: Thomas Graf <tgraf at noironetworks.com>
  Date:   2014-12-15 (Mon, 15 Dec 2014)

  Changed paths:
    M include/openvswitch/util.h
    M lib/sat-math.h
    M lib/vlog.h

  Log Message:
  -----------
  lib: Expose SAT_MUT as OVS_SAT_MUL in <openvswitch/util.h>

Insted of exposing the full sat-math.h API, only the macros
used in headers is exposed through <openvswitch/util.h>

Signed-off-by: Thomas Graf <tgraf at noironetworks.com>
Acked-by: Ben Pfaff <blp at nicira.com>


  Commit: ca6ba70092b1528e12d3140d70232175a13c335d
      https://github.com/openvswitch/ovs/commit/ca6ba70092b1528e12d3140d70232175a13c335d
  Author: Thomas Graf <tgraf at noironetworks.com>
  Date:   2014-12-15 (Mon, 15 Dec 2014)

  Changed paths:
    M CodingStyle.md
    M lib/fat-rwlock.c
    M lib/fat-rwlock.h
    M lib/guarded-list.c
    M lib/guarded-list.h
    M lib/jsonrpc.c
    M lib/lacp.c
    M lib/list.h
    M lib/mac-learning.c
    M lib/mac-learning.h
    M lib/mcast-snooping.c
    M lib/mcast-snooping.h
    M lib/netdev-dpdk.c
    M lib/netdev-dummy.c
    M lib/netdev-provider.h
    M lib/netdev.c
    M lib/netlink-notifier.c
    M lib/nx-match.c
    M lib/ofp-msgs.c
    M lib/ofp-msgs.h
    M lib/ofp-print.c
    M lib/ofp-util.c
    M lib/ofp-util.h
    M lib/ofpbuf.c
    M lib/ofpbuf.h
    M lib/ovs-numa.c
    M lib/ovs-rcu.c
    M lib/ovs-thread.c
    M lib/ovsdb-idl-provider.h
    M lib/ovsdb-idl.c
    M lib/process.c
    M lib/rconn.c
    M lib/rculist.h
    M lib/rstp-common.h
    M lib/rstp.c
    M lib/rtbsd.c
    M lib/rtbsd.h
    M lib/seq.c
    M lib/seq.h
    M lib/stp.c
    M lib/unixctl.c
    M lib/vconn.c
    M lib/vconn.h
    M lib/vlog.c
    M lib/vlog.h
    M ofproto/bond.c
    M ofproto/bundles.c
    M ofproto/connmgr.c
    M ofproto/connmgr.h
    M ofproto/ofproto-dpif-ipfix.c
    M ofproto/ofproto-dpif-monitor.c
    M ofproto/ofproto-dpif-upcall.c
    M ofproto/ofproto-dpif-xlate.c
    M ofproto/ofproto-dpif.c
    M ofproto/ofproto-dpif.h
    M ofproto/ofproto-provider.h
    M ofproto/ofproto.c
    M ofproto/pinsched.c
    M ofproto/pinsched.h
    M ovsdb/jsonrpc-server.c
    M ovsdb/ovsdb.h
    M ovsdb/row.h
    M ovsdb/server.h
    M ovsdb/transaction.c
    M ovsdb/trigger.h
    M tests/test-list.c
    M utilities/ovs-ofctl.c
    M utilities/ovs-vsctl.c
    M vswitchd/bridge.c
    M vtep/vtep-ctl.c

  Log Message:
  -----------
  list: Rename struct list to struct ovs_list

struct list is a common name and can't be used in public headers.

Signed-off-by: Thomas Graf <tgraf at noironetworks.com>
Acked-by: Ben Pfaff <blp at nicira.com>


  Commit: 55951e15e5603318219ea5efca160723bbb28111
      https://github.com/openvswitch/ovs/commit/55951e15e5603318219ea5efca160723bbb28111
  Author: Thomas Graf <tgraf at noironetworks.com>
  Date:   2014-12-15 (Mon, 15 Dec 2014)

  Changed paths:
    M include/openvswitch/automake.mk
    A include/openvswitch/list.h
    M lib/guarded-list.h
    M lib/lacp.c
    M lib/list.h
    M lib/netdev-dpdk.c
    M lib/netdev-dummy.c
    M lib/ovs-thread.c
    M lib/process.c
    M lib/rculist.h
    M lib/rstp.c
    M lib/rtbsd.c
    M lib/stp.c
    M lib/vlog.c
    M lib/vlog.h
    M ofproto/ofproto-dpif-monitor.c
    M ofproto/ofproto-dpif-upcall.c
    M ofproto/ofproto.c

  Log Message:
  -----------
  lib: Expose struct ovs_list definition in <openvswitch/list.h>

Expose the struct ovs_list definition in <openvswitch/list.h>. Keep the
list access API private for now.

Signed-off-by: Thomas Graf <tgraf at noironetworks.com>
Acked-by: Ben Pfaff <blp at nicira.com>


  Commit: e6211adce42c28453e0004c7a3e342a3d52bb97d
      https://github.com/openvswitch/ovs/commit/e6211adce42c28453e0004c7a3e342a3d52bb97d
  Author: Thomas Graf <tgraf at noironetworks.com>
  Date:   2014-12-15 (Mon, 15 Dec 2014)

  Changed paths:
    M include/openvswitch/automake.mk
    A include/openvswitch/vlog.h
    M lib/automake.mk
    M lib/backtrace.c
    M lib/bfd.c
    M lib/bundle.c
    M lib/cfm.c
    M lib/classifier.c
    M lib/command-line.c
    M lib/coverage.c
    M lib/daemon-unix.c
    M lib/daemon-windows.c
    M lib/daemon.c
    M lib/dpif-netdev.c
    M lib/dpif-netlink.c
    M lib/dpif.c
    M lib/entropy.c
    M lib/fatal-signal.c
    M lib/getopt_long.c
    M lib/getrusage-windows.c
    M lib/hmap.c
    M lib/jsonrpc.c
    M lib/lacp.c
    M lib/learning-switch.c
    M lib/lockfile.c
    M lib/mcast-snooping.c
    M lib/memory.c
    M lib/meta-flow.c
    M lib/netdev-bsd.c
    M lib/netdev-dpdk.c
    M lib/netdev-dummy.c
    M lib/netdev-linux.c
    M lib/netdev-vport.c
    M lib/netdev-windows.c
    M lib/netdev.c
    M lib/netlink-notifier.c
    M lib/netlink-socket.c
    M lib/netlink.c
    M lib/nx-match.c
    M lib/odp-util.c
    M lib/ofp-actions.c
    M lib/ofp-errors.c
    M lib/ofp-msgs.c
    M lib/ofp-util.c
    M lib/ovs-numa.c
    M lib/ovs-rcu.c
    M lib/ovs-thread.c
    M lib/ovsdb-error.c
    M lib/ovsdb-idl.c
    M lib/pcap-file.c
    M lib/poll-loop.c
    M lib/process.c
    M lib/rconn.c
    M lib/reconnect.c
    M lib/route-table.c
    M lib/rstp-state-machines.c
    M lib/rstp.c
    M lib/rtbsd.c
    M lib/signals.c
    M lib/socket-util-unix.c
    M lib/socket-util.c
    M lib/stp.c
    M lib/stream-fd.c
    M lib/stream-nossl.c
    M lib/stream-ssl.c
    M lib/stream-tcp.c
    M lib/stream-unix.c
    M lib/stream.c
    M lib/svec.c
    M lib/timeval.c
    M lib/tnl-arp-cache.c
    M lib/unixctl.c
    M lib/util.c
    M lib/vconn-stream.c
    M lib/vconn.c
    M lib/vlandev.c
    M lib/vlog.c
    R lib/vlog.h
    M ofproto/bond.c
    M ofproto/bundles.c
    M ofproto/collectors.c
    M ofproto/connmgr.c
    M ofproto/fail-open.c
    M ofproto/in-band.c
    M ofproto/netflow.c
    M ofproto/ofproto-dpif-ipfix.c
    M ofproto/ofproto-dpif-mirror.c
    M ofproto/ofproto-dpif-monitor.c
    M ofproto/ofproto-dpif-sflow.c
    M ofproto/ofproto-dpif-upcall.c
    M ofproto/ofproto-dpif-xlate.c
    M ofproto/ofproto-dpif.c
    M ofproto/ofproto.c
    M ofproto/pktbuf.c
    M ofproto/tunnel.c
    M ovsdb/file.c
    M ovsdb/jsonrpc-server.c
    M ovsdb/ovsdb-client.c
    M ovsdb/ovsdb-server.c
    M ovsdb/ovsdb-tool.c
    M tests/test-flows.c
    M tests/test-jsonrpc.c
    M tests/test-lockfile.c
    M tests/test-netflow.c
    M tests/test-odp.c
    M tests/test-ovsdb.c
    M tests/test-reconnect.c
    M tests/test-rstp.c
    M tests/test-sflow.c
    M tests/test-stp.c
    M tests/test-util.c
    M tests/test-vconn.c
    M utilities/nlmon.c
    M utilities/ovs-appctl.c
    M utilities/ovs-benchmark.c
    M utilities/ovs-dpctl.c
    M utilities/ovs-ofctl.c
    M utilities/ovs-testcontroller.c
    M utilities/ovs-vsctl.c
    M vswitchd/bridge.c
    M vswitchd/ovs-vswitchd.c
    M vswitchd/system-stats.c
    M vswitchd/xenserver.c
    M vtep/vtep-ctl.c

  Log Message:
  -----------
  lib: Move vlog.h to <openvswitch/vlog.h>

A new function vlog_insert_module() is introduced to avoid using
list_insert() from the vlog.h header.

Signed-off-by: Thomas Graf <tgraf at noironetworks.com>
Acked-by: Ben Pfaff <blp at nicira.com>


  Commit: 4a1f523f2d760e9e5751bc93519d1b70c5492b56
      https://github.com/openvswitch/ovs/commit/4a1f523f2d760e9e5751bc93519d1b70c5492b56
  Author: Thomas Graf <tgraf at noironetworks.com>
  Date:   2014-12-15 (Mon, 15 Dec 2014)

  Changed paths:
    M include/openvswitch/automake.mk
    A include/openvswitch/vconn.h
    M lib/automake.mk
    M lib/learning-switch.c
    M lib/ofp-parse.c
    M lib/rconn.c
    M lib/vconn-provider.h
    M lib/vconn-stream.c
    R lib/vconn.h
    M ofproto/bundles.c
    M ofproto/connmgr.c
    M ofproto/fail-open.c
    M ofproto/pinsched.c
    M ofproto/pktbuf.c
    M tests/test-vconn.c
    M utilities/ovs-ofctl.c
    M utilities/ovs-testcontroller.c
    M utilities/ovs-vsctl.c
    M vswitchd/ovs-vswitchd.c
    M vtep/vtep-ctl.c

  Log Message:
  -----------
  lib: Move vconn.h to <openvswitch/vconn.h>

Also moves definitions for struct vconn and pvconn to the public
header. The provider interface is kept private.

Signed-off-by: Thomas Graf <tgraf at noironetworks.com>
Acked-by: Ben Pfaff <blp at nicira.com>


  Commit: acf72f1322a041fdf30a1c115dbc0e7a6dffac00
      https://github.com/openvswitch/ovs/commit/acf72f1322a041fdf30a1c115dbc0e7a6dffac00
  Author: Thomas Graf <tgraf at noironetworks.com>
  Date:   2014-12-15 (Mon, 15 Dec 2014)

  Changed paths:
    M tests/.gitignore
    M tests/automake.mk
    A tests/lib.at
    M tests/library.at
    A tests/test-lib.c

  Log Message:
  -----------
  lib: Add test for library usage

This test covers inclusion of public header files and basic usage
of the API such as vlog.

Signed-off-by: Thomas Graf <tgraf at noironetworks.com>
Acked-by: Ben Pfaff <blp at nicira.com>


Compare: https://github.com/openvswitch/ovs/compare/9a8d2f8c49c2...acf72f1322a0


More information about the git mailing list