]>
Commit | Line | Data |
---|---|---|
b19e8815 | 1 | /* |
e0edde6f | 2 | * Copyright (c) 2007-2011 Nicira, Inc. |
b19e8815 | 3 | * |
a9a29d22 JG |
4 | * This program is free software; you can redistribute it and/or |
5 | * modify it under the terms of version 2 of the GNU General Public | |
6 | * License as published by the Free Software Foundation. | |
7 | * | |
8 | * This program is distributed in the hope that it will be useful, but | |
9 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
11 | * General Public License for more details. | |
12 | * | |
13 | * You should have received a copy of the GNU General Public License | |
14 | * along with this program; if not, write to the Free Software | |
15 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | |
16 | * 02110-1301, USA | |
b19e8815 JG |
17 | */ |
18 | ||
19 | #include <linux/etherdevice.h> | |
20 | ||
21 | #include "vport-generic.h" | |
22 | ||
850b6b3b | 23 | unsigned ovs_vport_gen_get_dev_flags(const struct vport *vport) |
b19e8815 JG |
24 | { |
25 | return IFF_UP | IFF_RUNNING | IFF_LOWER_UP; | |
26 | } | |
27 | ||
850b6b3b | 28 | int ovs_vport_gen_is_running(const struct vport *vport) |
b19e8815 JG |
29 | { |
30 | return 1; | |
31 | } | |
32 | ||
850b6b3b | 33 | unsigned char ovs_vport_gen_get_operstate(const struct vport *vport) |
b19e8815 JG |
34 | { |
35 | return IF_OPER_UP; | |
36 | } |