[dpdk-dev] [PATCH v9 3/5] net: add a helper for making RARP packet
Thomas Monjalon
thomas at monjalon.net
Tue Jan 9 18:22:40 CET 2018
09/01/2018 17:09, Xiao Wang:
> --- a/lib/librte_net/rte_arp.h
> +++ b/lib/librte_net/rte_arp.h
> @@ -76,6 +76,20 @@ struct arp_hdr {
> struct arp_ipv4 arp_data;
> } __attribute__((__packed__));
>
> +/**
> + * Make a RARP packet based on MAC addr.
> + *
> + * @param mbuf
> + * Pointer to the rte_mbuf structure
> + * @param mac
> + * Pointer to the MAC addr
> + *
> + * @return
> + * - 0 on success, negative on error
> + */
> +int
> +rte_net_make_rarp_packet(struct rte_mbuf *mbuf, const struct ether_addr *mac);
Please check how experimental state is advertised for other functions.
Usually we add a bold doxygen comment.
[...]
> --- a/lib/librte_net/rte_net_version.map
> +++ b/lib/librte_net/rte_net_version.map
> +EXPERIMENTAL {
> + global:
> +
> + rte_net_make_rarp_packet;
> +} DPDK_17.05;
>
More information about the dev
mailing list