ethdev: protect Rx/Tx callback change with locks
authorReshma Pattan <reshma.pattan@intel.com>
Wed, 15 Jun 2016 14:06:18 +0000 (15:06 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 16 Jun 2016 21:37:53 +0000 (23:37 +0200)
commit525335f4ce34a4a5c0d897d4e9d192a43817f17c
treef11f79c45e8dc214e9b1dcbfeb08cd34ee037e18
parent7b2a704c4e84dcc11ffa381293d2c3d686a999b8
ethdev: protect Rx/Tx callback change with locks

Added spinlocks around add/remove logic of Rx and Tx callbacks
to avoid corruption of callback lists in multithreaded context.

Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
lib/librte_ether/rte_ethdev.c