[dpdk-dev] [PATCH] net/ixgbe: prevent duplicate callback on list

2016-10-20 Thread Scott Daniels
t, >> >>> -Original Message- >>> From: Scott Daniels [mailto:daniels at research.att.com] >>> Sent: Thursday, October 20, 2016 10:11 AM >>> To: Lu, Wenzhuo >>> Cc: Zhang, Helin; Iremonger, Bernard; dev at dpdk.org; ZELEZNIAK, ALEX >

[dpdk-dev] [PATCH] net/ixgbe: prevent duplicate callback on list

2016-10-20 Thread Lu, Wenzhuo
20, 2016 6:23 AM > >> To: Zhang, Helin; Iremonger, Bernard > >> Cc: dev at dpdk.org; az5157 at att.com; E. Scott Daniels > >> Subject: [dpdk-dev] [PATCH] net/ixgbe: prevent duplicate callback on > >> list > >> > >> This change prevents the attempt

[dpdk-dev] [PATCH] net/ixgbe: prevent duplicate callback on list

2016-10-20 Thread Lu, Wenzhuo
Hi Scott, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of E. Scott Daniels > Sent: Thursday, October 20, 2016 6:23 AM > To: Zhang, Helin; Iremonger, Bernard > Cc: dev at dpdk.org; az5157 at att.com; E. Scott Daniels > Subject: [dpdk-dev]

[dpdk-dev] [PATCH] net/ixgbe: prevent duplicate callback on list

2016-10-19 Thread Scott Daniels
dpdk.org; ZELEZNIAK, ALEX >> Subject: RE: [dpdk-dev] [PATCH] net/ixgbe: prevent duplicate callback on list >> >> >> >> On Wed, 19 Oct 2016, Lu, Wenzhuo wrote: >> >>> Hi Scott, >>> >>>> -Original Message- >>>> From

[dpdk-dev] [PATCH] net/ixgbe: prevent duplicate callback on list

2016-10-19 Thread Scott Daniels
pdk.org; az5157 at att.com; E. Scott Daniels >> Subject: [dpdk-dev] [PATCH] net/ixgbe: prevent duplicate callback on list >> >> This change prevents the attempt to add a structure which is already on the >> callback list. If a struct with matching parameters is found o

[dpdk-dev] [PATCH] net/ixgbe: prevent duplicate callback on list

2016-10-19 Thread E. Scott Daniels
This change prevents the attempt to add a structure which is already on the callback list. If a struct with matching parameters is found on the list, then no action is taken. If a struct with matching parameters is found on the list, then no action is taken. Signed-off-by: E. Scott Daniels --- l

[dpdk-dev] [PATCH] net/ixgbe: prevent duplicate callback on list

2016-10-19 Thread E. Scott Daniels
If rte_eth_dev_callback_register() is invoked with parameters which match a callback struct that is already on the list, an attempt is made to add that same struct onto the tail of the list. Adding a struct which is already on the list will have undesired results. This is an edge case, but I think