From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v9 3/5] net: add a helper for making RARP packet Date: Tue, 09 Jan 2018 18:22:40 +0100 Message-ID: <1723302.rTpf7COCtA@xps> References: <20180109132654.3504-4-xiao.w.wang@intel.com> <20180109160918.29173-1-xiao.w.wang@intel.com> <20180109160918.29173-4-xiao.w.wang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: yliu@fridaylinux.org, tiwei.bie@intel.com, dev@dpdk.org, stephen@networkplumber.org, maxime.coquelin@redhat.com To: Xiao Wang Return-path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id B920B2904 for ; Tue, 9 Jan 2018 18:23:05 +0100 (CET) In-Reply-To: <20180109160918.29173-4-xiao.w.wang@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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; >