mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
dpif: Save added ports in a port map for netdev flow api use
To use netdev flow offloading api, dpifs needs to iterate over added ports. This addition inserts the added dpif ports in a hash map, The map will also be used to translate dpif ports to netdevs. Signed-off-by: Paul Blakey <paulb@mellanox.com> Reviewed-by: Roi Dayan <roid@mellanox.com> Acked-by: Flavio Leitner <fbl@sysclose.org> Signed-off-by: Simon Horman <simon.horman@netronome.com>
This commit is contained in:
committed by
Simon Horman
parent
691d20cbdc
commit
32b77c316d
@@ -182,6 +182,12 @@ int netdev_init_flow_api(struct netdev *);
|
||||
bool netdev_is_flow_api_enabled(void);
|
||||
void netdev_set_flow_api_enabled(const struct smap *ovs_other_config);
|
||||
|
||||
struct dpif_port;
|
||||
int netdev_ports_insert(struct netdev *, const void *obj, struct dpif_port *);
|
||||
struct netdev *netdev_ports_get(odp_port_t port, const void *obj);
|
||||
int netdev_ports_remove(odp_port_t port, const void *obj);
|
||||
odp_port_t netdev_ifindex_to_odp_port(int ifindex);
|
||||
|
||||
/* native tunnel APIs */
|
||||
/* Structure to pass parameters required to build a tunnel header. */
|
||||
struct netdev_tnl_build_header_params {
|
||||
|
Reference in New Issue
Block a user