igb: release software locked semaphores on initialization
authorDidier Pallard <didier.pallard@6wind.com>
Tue, 8 Apr 2014 13:29:58 +0000 (15:29 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 9 Apr 2014 16:30:02 +0000 (18:30 +0200)
commit4c9d8ed203c1170e4cc116a2432a19b4b4bf25ad
tree141dff02606b0c98fce5b290d7c311d94ffb34fb
parentd73d8f3ad4d42b04d6379dee830cc1726f9c94ef
igb: 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_e1000/igb_ethdev.c