Signed-off-by: Jon Ludlam <Jonathan.Ludlam@eu.citrix.com>
diff -r
07f69949f0bf Makefile.in--- a/Makefile.in
+++ b/Makefile.in
@@ -37,6 +37,7 @@
allxen:
ifeq ($(HAVE_XEN),1)
$(MAKE) -C mmap
+ $(MAKE) -C netdev
$(MAKE) -C xc
$(MAKE) -C xb
$(MAKE) -C xs
@@ -74,6 +75,7 @@
installxen:
ifeq ($(HAVE_XEN),1)
$(MAKE) -C mmap install
+ $(MAKE) -C netdev install
$(MAKE) -C xc install
$(MAKE) -C xb install
$(MAKE) -C xs install
@@ -112,6 +114,7 @@
ifeq ($(HAVE_XEN),1)
$(MAKE) -C eventchn uninstall
$(MAKE) -C xsrpc uninstall
+ $(MAKE) -C netdev uninstall
$(MAKE) -C xs uninstall
$(MAKE) -C xb uninstall
$(MAKE) -C xc uninstall
@@ -162,6 +165,7 @@
$(MAKE) -C stunnel doc
$(MAKE) -C xsrpc doc
$(MAKE) -C mmap doc
+ $(MAKE) -C netdev doc
$(MAKE) -C forking_executioner doc
$(MAKE) -C mlvm doc
$(MAKE) -C cpuid doc
@@ -190,6 +194,7 @@
cleanxen:
$(MAKE) -C mmap clean
+ $(MAKE) -C netdev clean
$(MAKE) -C xc clean
$(MAKE) -C xb clean
$(MAKE) -C xs clean
not(List.mem "xen-backend" (String.split '/' link))
with _ -> false
-let get_bios_name name =
- try
- let output, _ = Forkhelpers.execute_command_get_output "/sbin/biosdevname" ["-i"; name] in
- let output = String.strip String.isspace output in
- output
- with _ -> name
-
(* Dispatch network backend operations. *)
let network_config_file = "/etc/xensource/network.conf"
(** Returns PCI vendor and device ID for network device. *)
val get_ids : string -> string * string
-(** Indicates whether the given interface is a physical interface. *)
+(** Indicates whether the given interface is a physical interface *)
val is_physical : string -> bool
-(** Returns the device name of the given interface according to [biosdevname]. This is a name
- * that is based on the BIOS name and should not be affected by changes in the Linux kernel or
- * manual device renaming. *)
-val get_bios_name : string -> string
-
-(** Dispatch operation to correct backend device. *)
+(** Dispatch operation to correct backend device *)
val network : network_ops
/usr/lib/ocaml/cpuid/cpuid.cmxa
/usr/lib/ocaml/cpuid/dllcpuid_stubs.so
/usr/lib/ocaml/cpuid/libcpuid_stubs.a
+ /usr/lib/ocaml/netdev/*
/usr/lib/ocaml/eventchn/META
/usr/lib/ocaml/eventchn/dlleventchn_stubs.so
/usr/lib/ocaml/eventchn/eventchn.a