DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/ixgbe: prevent duplicate callback on list
@ 2016-10-19 22:23 E. Scott Daniels
  2016-10-19 22:23 ` E. Scott Daniels
  0 siblings, 1 reply; 7+ messages in thread
From: E. Scott Daniels @ 2016-10-19 22:23 UTC (permalink / raw)
  To: helin.zhang, bernard.iremonger; +Cc: dev, az5157, 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 it should be corrected;
patch prevents the attempt to add a struct which is already
on the list.

E. Scott Daniels (1):
  net/ixgbe: prevent duplicate callback on list

 lib/librte_ether/rte_ethdev.c | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-10-20 13:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-19 22:23 [dpdk-dev] [PATCH] net/ixgbe: prevent duplicate callback on list E. Scott Daniels
2016-10-19 22:23 ` E. Scott Daniels
2016-10-20  1:39   ` Lu, Wenzhuo
2016-10-20  2:11     ` Scott Daniels
2016-10-20  2:19       ` Lu, Wenzhuo
2016-10-20  2:31         ` Scott Daniels
2016-10-20 13:35           ` Scott Daniels

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).