Re: [dpdk-dev] [PATCH v8 3/5] net: add a helper for making RARP packet

2018-01-09 Thread Wang, Xiao W
Hi, > -Original Message- > From: Thomas Monjalon [mailto:tho...@monjalon.net] > Sent: Tuesday, January 9, 2018 9:49 PM > To: Wang, Xiao W > Cc: y...@fridaylinux.org; Bie, Tiwei ; dev@dpdk.org; > step...@networkplumber.org > Subject: Re: [PATCH v8 3/5] net: add a helper for making RARP pac

Re: [dpdk-dev] [PATCH v8 3/5] net: add a helper for making RARP packet

2018-01-09 Thread Thomas Monjalon
09/01/2018 14:26, Xiao Wang: > +/** > + * 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(

[dpdk-dev] [PATCH v8 3/5] net: add a helper for making RARP packet

2018-01-09 Thread Xiao Wang
Suggested-by: Maxime Coquelin Signed-off-by: Xiao Wang --- lib/librte_net/Makefile| 1 + lib/librte_net/rte_arp.c | 42 ++ lib/librte_net/rte_arp.h | 14 + lib/librte_net/rte_net_version.map | 6 ++ 4 files cha