vport-netdev.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Copyright (c) 2007-2011 Nicira, Inc.
  3. *
  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
  17. */
  18. #ifndef VPORT_NETDEV_H
  19. #define VPORT_NETDEV_H 1
  20. #include <linux/netdevice.h>
  21. #include <linux/rcupdate.h>
  22. #include "vport.h"
  23. struct vport *ovs_netdev_get_vport(struct net_device *dev);
  24. struct vport *ovs_netdev_link(struct vport *vport, const char *name);
  25. void ovs_netdev_detach_dev(struct vport *);
  26. int __init ovs_netdev_init(void);
  27. void ovs_netdev_exit(void);
  28. void ovs_netdev_tunnel_destroy(struct vport *vport);
  29. #endif /* vport_netdev.h */