On Wed, Feb 10, 2021 at 8:57 PM Eli Britstein <el...@nvidia.com> wrote: > > When offloading vports, we don't configure rte_flow on the vport itself, > as it is not a physical dpdk port, but rather on uplinks. Implement > those APIs as a pre-step to enable iterate over the ports.
We don't need these flow_dump APIs, since we are not really dumping any flows here and also orig_in_port is provided to the offload layer (Patch 12). Thanks, -Harsha > > Signed-off-by: Eli Britstein <el...@nvidia.com> > Reviewed-by: Gaetan Rivet <gaet...@nvidia.com> > --- > lib/netdev-offload-dpdk.c | 24 ++++++++++++++++++++++++ > 1 file changed, 24 insertions(+) > > diff --git a/lib/netdev-offload-dpdk.c b/lib/netdev-offload-dpdk.c > index f2413f5be..8cc90d0f1 100644 > --- a/lib/netdev-offload-dpdk.c > +++ b/lib/netdev-offload-dpdk.c > @@ -1588,6 +1588,28 @@ netdev_offload_dpdk_flow_flush(struct netdev *netdev) > return 0; > } > > +static int > +netdev_offload_dpdk_flow_dump_create(struct netdev *netdev, > + struct netdev_flow_dump **dump_out, > + bool terse OVS_UNUSED) > +{ > + struct netdev_flow_dump *dump; > + > + dump = xzalloc(sizeof *dump); > + dump->netdev = netdev_ref(netdev); > + > + *dump_out = dump; > + return 0; > +} > + > +static int > +netdev_offload_dpdk_flow_dump_destroy(struct netdev_flow_dump *dump) > +{ > + netdev_close(dump->netdev); > + free(dump); > + return 0; > +} > + > const struct netdev_flow_api netdev_offload_dpdk = { > .type = "dpdk_flow_api", > .flow_put = netdev_offload_dpdk_flow_put, > @@ -1595,4 +1617,6 @@ const struct netdev_flow_api netdev_offload_dpdk = { > .init_flow_api = netdev_offload_dpdk_init_flow_api, > .flow_get = netdev_offload_dpdk_flow_get, > .flow_flush = netdev_offload_dpdk_flow_flush, > + .flow_dump_create = netdev_offload_dpdk_flow_dump_create, > + .flow_dump_destroy = netdev_offload_dpdk_flow_dump_destroy, > }; > -- > 2.28.0.546.g385c171 > -- This electronic communication and the information and any files transmitted with it, or attached to it, are confidential and are intended solely for the use of the individual or entity to whom it is addressed and may contain information that is confidential, legally privileged, protected by privacy laws, or otherwise restricted from disclosure to anyone else. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient, you are hereby notified that any use, copying, distributing, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited. If you received this e-mail in error, please return the e-mail to the sender, delete it from your computer, and destroy any printed copy of it. _______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev