[dpdk-dev] bonding: use eth_dev link state interrupt flag

Message ID 1449237938-10370-1-git-send-email-bernard.iremonger@intel.com (mailing list archive)
State Accepted, archived
Headers

Commit Message

Iremonger, Bernard Dec. 4, 2015, 2:05 p.m. UTC
  replace RTE_PCI_DRV_INTR_LSC with RTE_ETH_DEV_INTR_LSC

Fixes: 71ba84b1ccb2("bonding: remove fake pci interface")
Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
---
 drivers/net/bonding/rte_eth_bond_pmd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Doherty, Declan Dec. 4, 2015, 4:45 p.m. UTC | #1
On 04/12/15 14:05, Bernard Iremonger wrote:
> replace RTE_PCI_DRV_INTR_LSC with RTE_ETH_DEV_INTR_LSC
>
> Fixes: 71ba84b1ccb2("bonding: remove fake pci interface")
> Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
> ---
>   drivers/net/bonding/rte_eth_bond_pmd.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd.c
> index aa985f5..8f84ec1 100644
> --- a/drivers/net/bonding/rte_eth_bond_pmd.c
> +++ b/drivers/net/bonding/rte_eth_bond_pmd.c
> @@ -1445,7 +1445,7 @@ slave_add(struct bond_dev_private *internals,
>
>   	/* If slave device doesn't support interrupts then we need to enabled
>   	 * polling to monitor link status */
> -	if (!(slave_eth_dev->data->dev_flags & RTE_PCI_DRV_INTR_LSC)) {
> +	if (!(slave_eth_dev->data->dev_flags & RTE_ETH_DEV_INTR_LSC)) {
>   		slave_details->link_status_poll_enabled = 1;
>
>   		if (!internals->link_status_polling_enabled) {
>

Acked-by: Declan Doherty <declan.doherty@intel.com>
  
Thomas Monjalon Dec. 6, 2015, 11:12 p.m. UTC | #2
2015-12-04 16:45, Declan Doherty:
> On 04/12/15 14:05, Bernard Iremonger wrote:
> > replace RTE_PCI_DRV_INTR_LSC with RTE_ETH_DEV_INTR_LSC
> >
> > Fixes: 71ba84b1ccb2("bonding: remove fake pci interface")
> > Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
> 
> Acked-by: Declan Doherty <declan.doherty@intel.com>

Applied, thanks
  

Patch

diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd.c
index aa985f5..8f84ec1 100644
--- a/drivers/net/bonding/rte_eth_bond_pmd.c
+++ b/drivers/net/bonding/rte_eth_bond_pmd.c
@@ -1445,7 +1445,7 @@  slave_add(struct bond_dev_private *internals,
 
 	/* If slave device doesn't support interrupts then we need to enabled
 	 * polling to monitor link status */
-	if (!(slave_eth_dev->data->dev_flags & RTE_PCI_DRV_INTR_LSC)) {
+	if (!(slave_eth_dev->data->dev_flags & RTE_ETH_DEV_INTR_LSC)) {
 		slave_details->link_status_poll_enabled = 1;
 
 		if (!internals->link_status_polling_enabled) {