Fix link bonding PMD slave status polling path used by VIC ENIC driver.
[vpp.git] / dpdk / dpdk-2.2.0_patches / 0011-Fix-link-bonding-PMD-slave-status-polling-path-used-.patch
1 From 39272e0a1c227b1ab9360e6fbcbc497eaaed4cb0 Mon Sep 17 00:00:00 2001
2 From: John Lo <loj@cisco.com>
3 Date: Fri, 26 Feb 2016 12:45:55 -0500
4 Subject: [PATCH 1/2] Fix link bonding PMD slave status polling path used by
5  ENIC driver,
6
7 ---
8  drivers/net/bonding/rte_eth_bond_pmd.c | 3 ++-
9  1 file changed, 2 insertions(+), 1 deletion(-)
10
11 diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd.c
12 index b1373c6..9efd73c 100644
13 --- a/drivers/net/bonding/rte_eth_bond_pmd.c
14 +++ b/drivers/net/bonding/rte_eth_bond_pmd.c
15 @@ -1734,7 +1734,7 @@ bond_ethdev_slave_link_status_change_monitor(void *cb_arg)
16  
17         if (!bonded_ethdev->data->dev_started ||
18                 !internals->link_status_polling_enabled)
19 -               return;
20 +               goto rearm_and_exit;
21  
22         /* If device is currently being configured then don't check slaves link
23          * status, wait until next period */
24 @@ -1768,6 +1768,7 @@ bond_ethdev_slave_link_status_change_monitor(void *cb_arg)
25                 rte_spinlock_unlock(&internals->lock);
26         }
27  
28 + rearm_and_exit:
29         if (polling_slave_found)
30                 /* Set alarm to continue monitoring link status of slave ethdev's */
31                 rte_eal_alarm_set(internals->link_status_polling_interval_ms * 1000,
32 -- 
33 1.9.1
34