From 9fe3b9a2eeace9689def807e78e35c79e4b1814b Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 29 Dec 2010 14:20:16 -0800 Subject: 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 Acked-by: Jesse Gross --- lib/dpif-linux.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 lib/dpif-linux.h (limited to 'lib/dpif-linux.h') 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 + +bool dpif_linux_is_internal_device(const char *name); + +#endif /* dpif-linux.h */ -- cgit v1.2.1