Replace spinlock with read/write lock.
Add read/write locks where needed to protect
active_slave_count and active_slaves[].
With read/write locks in place remove memcpy of slaves.

Bernard Iremonger (5):
  bonding: replace spinlock with read/write lock
  bonding: add read/write lock to rx/tx burst functions
  bonding: remove memcopy of slaves from rx/tx burst function
  bonding: add read/write lock to stop function
  bonding: add read/write lock to the link_update function

 drivers/net/bonding/rte_eth_bond_api.c     |  10 +-
 drivers/net/bonding/rte_eth_bond_pmd.c     | 219 ++++++++++++++++-------------
 drivers/net/bonding/rte_eth_bond_private.h |   6 +-
 3 files changed, 131 insertions(+), 104 deletions(-)

-- 
2.6.3

Reply via email to