ixgbe: release software locked semaphores on initialization
authorDidier Pallard <didier.pallard@6wind.com>
Tue, 8 Apr 2014 13:29:57 +0000 (15:29 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 9 Apr 2014 16:30:02 +0000 (18:30 +0200)
commitf283b30509d2db745e7467fd5e2ccd2c84cc44cc
tree55c9ea338697bc96697fd7f81e813cded52b79a5
parent4c9d8ed203c1170e4cc116a2432a19b4b4bf25ad
ixgbe: release software locked semaphores on initialization

It may happen that DPDK application gets killed while having
acquired locks on the ethernet hardware, causing these locks to
be never released. On next restart of the application, DPDK
skip those ports because it can not acquire the lock,
this may cause some ports (or even complete board if SMBI is locked)
to be inaccessible from DPDK application until reboot of the
hardware.

This patch release locks that are supposed to be locked due to
an improper exit of the application.

Signed-off-by: Didier Pallard <didier.pallard@6wind.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
lib/librte_pmd_ixgbe/ixgbe_ethdev.c