net/bonding: replace panic with errno code return
authorMichal Jastrzebski <michalx.k.jastrzebski@intel.com>
Fri, 27 May 2016 15:20:53 +0000 (17:20 +0200)
committerBruce Richardson <bruce.richardson@intel.com>
Mon, 20 Jun 2016 15:21:48 +0000 (17:21 +0200)
commit08719a84178097380f62e623866fd506e7a4c021
tree7712eaadb975def8437b6aeacc333f8f1750704c
parent5cf864186355048ee3f929602928c84af06e94b8
net/bonding: replace panic with errno code return

This patch modifies bond_mode_alb_enable function.
When mempool allocation fails errno code is returned
instead of rte_panic. This allow to decide on application level
if it should quit or retry for mempool allocation.

Signed-off-by: Michal Jastrzebski <michalx.k.jastrzebski@intel.com>
Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
drivers/net/bonding/rte_eth_bond_alb.c