summaryrefslogtreecommitdiff
path: root/lib/dpif-linux.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2010-12-29 14:20:16 -0800
committerBen Pfaff <blp@nicira.com>2011-01-27 21:08:36 -0800
commit9fe3b9a2eeace9689def807e78e35c79e4b1814b (patch)
tree855804c2aaa1c0477e98d7fbfedd61e5fa137575 /lib/dpif-linux.h
parent51d4d59822785c1044cd96e6c73427347e0154c2 (diff)
downloadopenvswitch-9fe3b9a2eeace9689def807e78e35c79e4b1814b.tar.gz
datapath: Drop datapath index and port number from Ethtool output.
I introduced this a long time ago as an efficient way for userspace to find out whether and where an internal device was attached, but I've always considered it an ugly kluge. Now that ODP_VPORT_QUERY can fetch a vport's info regardless of datapath, it is no longer necessary. This commit stops using Ethtool for this purpose and drops the feature. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'lib/dpif-linux.h')
-rw-r--r--lib/dpif-linux.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/dpif-linux.h b/lib/dpif-linux.h
new file mode 100644
index 000000000..1dff4b76c
--- /dev/null
+++ b/lib/dpif-linux.h
@@ -0,0 +1,24 @@
+/*
+ * Copyright (c) 2010 Nicira Networks.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at:
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef DPIF_LINUX_H
+#define DPIF_LINUX_H 1
+
+#include <stdbool.h>
+
+bool dpif_linux_is_internal_device(const char *name);
+
+#endif /* dpif-linux.h */