ethdev: read link state interrupt without link update service
authorThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 20 Jun 2014 13:13:58 +0000 (15:13 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 27 Jun 2014 00:06:40 +0000 (02:06 +0200)
commit506964bf86b0b0a576d590e89c4494afceb86a94
tree17f1ea70ed449aa5a8559a46d219e19561b5f9d5
parentd47bd10c8dd1a6174d08791c0266d9aacf956902
ethdev: read link state interrupt without link update service

It is now possible to read link status updated by interrupt without
having manual link_update() service provided by the PMD.
Indeed link_update() is useless in interrupt case. So check of this
function pointer must be done in the interrupt case only.

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_ether/rte_ethdev.c