mirror of
https://github.com/openvswitch/ovs
synced 2025-10-13 14:07:02 +00:00
Pull some generic implementations of vport functions out of the GRE vport so they can be used by others. Also move the code to set the MTUs of internal devices to the minimum of attached devices to the generic vport_set_mtu layer.
20 lines
531 B
C
20 lines
531 B
C
/*
|
|
* Copyright (c) 2010 Nicira Networks.
|
|
* Distributed under the terms of the GNU GPL version 2.
|
|
*
|
|
* Significant portions of this file may be copied from parts of the Linux
|
|
* kernel, by Linus Torvalds and others.
|
|
*/
|
|
|
|
#ifndef VPORT_GENERIC_H
|
|
#define VPORT_GENERIC_H 1
|
|
|
|
#include "vport.h"
|
|
|
|
void vport_gen_rand_ether_addr(u8 *addr);
|
|
unsigned vport_gen_get_dev_flags(const struct vport *);
|
|
int vport_gen_is_running(const struct vport *);
|
|
unsigned char vport_gen_get_operstate(const struct vport *);
|
|
|
|
#endif /* vport-generic.h */
|