/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2007-2011 Nicira, Inc. */ /* * Includes Inango Systems Ltd’s changes/modifications dated: 2021. * Changed/modified portions - Copyright (c) 2021 , Inango Systems Ltd. */ /* Includes MaxLinear's changes dated: 2021, 2022, 2023. Changed portions - Copyright 2021-2023 MaxLinear, Inc. */ #ifndef VPORT_NETDEV_H #define VPORT_NETDEV_H 1 #include #include #include "vport.h" struct vport *ovs_netdev_get_vport(struct net_device *dev); #ifdef CONFIG_OPENVSWITCH_BRCOMPAT struct vport *ovs_netdev_link(struct vport *vport, const char *name, const char *bridgeName); #else struct vport *ovs_netdev_link(struct vport *vport, const char *name); #endif void ovs_netdev_detach_dev(struct vport *); int __init ovs_netdev_init(void); void ovs_netdev_exit(void); void ovs_netdev_tunnel_destroy(struct vport *vport); #ifdef CONFIG_OPENVSWITCH_BRCOMPAT int ovs_netdev_set_addr(struct vport *, const unsigned char *addr); const char *ovs_netdev_get_name(const struct vport *); const unsigned char *ovs_netdev_get_addr(const struct vport *); struct kobject *ovs_netdev_get_kobj(const struct vport *); unsigned ovs_netdev_get_dev_flags(const struct vport *); int ovs_netdev_is_running(const struct vport *); unsigned char ovs_netdev_get_operstate(const struct vport *); int ovs_netdev_get_ifindex(const struct vport *); int ovs_netdev_get_mtu(const struct vport *); #endif #endif /* vport_netdev.h */