mirror of
https://github.com/openvswitch/ovs
synced 2025-10-27 15:18:06 +00:00
Currently the datapath directly accesses devices through their Linux functions. Obviously this doesn't work for virtual devices that are not backed by an actual Linux device. This creates a new virtual port layer which handles all interaction with devices. The existing support for Linux devices was then implemented on top of this layer as two device types. It splits out and renames dp_dev to internal_dev. There were several places where datapath devices had to handled in a special manner and this cleans that up by putting all the special casing in a single location.
21 lines
520 B
C
21 lines
520 B
C
/*
|
|
* Copyright (c) 2009, 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_INTERNAL_DEV_H
|
|
#define VPORT_INTERNAL_DEV_H 1
|
|
|
|
#include "datapath.h"
|
|
#include "vport.h"
|
|
|
|
int is_internal_vport(const struct vport *);
|
|
|
|
int is_internal_dev(const struct net_device *);
|
|
struct vport *internal_dev_get_vport(struct net_device *);
|
|
|
|
#endif /* vport-internal_dev.h */
|