--- zzzz-none-000/linux-5.15.111/net/openvswitch/vport-netdev.h 2023-05-11 14:00:40.000000000 +0000 +++ puma7-atom-6670-761/linux-5.15.111/net/openvswitch/vport-netdev.h 2024-02-07 10:23:30.000000000 +0000 @@ -3,6 +3,16 @@ * 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 @@ -13,11 +23,28 @@ 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 */