[dpdk-dev] [PATCH v2] ethdev: refine doxygen for add UDP tunnel port API
Thomas Monjalon
thomas at monjalon.net
Wed Jan 27 23:46:20 CET 2021
27/01/2021 12:34, Ferruh Yigit:
> On 1/19/2021 3:19 AM, Qi Zhang wrote:
> > Refine the doxygen for rte_eth_dev_udp_tunnel_port_add.
> > Add more detail description of the impacted offload functions.
> >
> > Signed-off-by: Qi Zhang <qi.z.zhang at intel.com>
> > ---
> >
> > v2:
> > - reword doxygen that focus on API impact base on previous discussion.
> >
> > lib/librte_ethdev/rte_ethdev.h | 11 +++++++++++
> > 1 file changed, 11 insertions(+)
> >
> > diff --git a/lib/librte_ethdev/rte_ethdev.h b/lib/librte_ethdev/rte_ethdev.h
> > index f758ec837..ab50a7039 100644
> > --- a/lib/librte_ethdev/rte_ethdev.h
> > +++ b/lib/librte_ethdev/rte_ethdev.h
> > @@ -4031,6 +4031,17 @@ rte_eth_dev_rss_hash_conf_get(uint16_t port_id,
> > * to change or add more UDP port for the tunnel. So the offloading function
> > * can take effect on the packets with the specific UDP port.
> > *
> > + * The impacted offloading functions include:
> > + *
> > + * - A specific tunnel type in mbuf->packet_type
> > + *
> > + * - A rte_flow rule that matches on specific tunnel header
> > + *
> > + * NOTE: If a packet only has a matched UDP port but don't have a legal tunnel
> > + * header, the packet may still not be recognized as a tunnel packet by
> > + * the device parser, then the related offloading function will not take
> > + * effect.
> > + *
> > * @param port_id
> > * The port identifier of the Ethernet device.
> > * @param tunnel_udp
> >
>
> Hi Thomas, is the v2 good to go?
Sorry I didn't take time to work on the wording.
I think we can make the explanation a bit more precise
with few more updates in the existing lines for this function and
for struct rte_eth_udp_tunnel and enum rte_eth_tunnel_type.
I agree with the idea and would like to propose a v3 for -rc3 integration
if possible.
The ethdev API documentation is not an easy task.
As we are improving it, let's not miss some corners.
More information about the dev
mailing list