diff options
| -rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib.h | 2 | ||||
| -rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib_ib.c | 8 | ||||
| -rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib_main.c | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib.h b/drivers/infiniband/ulp/ipoib/ipoib.h index 683d23ac7cbf..3edce617c31b 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib.h +++ b/drivers/infiniband/ulp/ipoib/ipoib.h | |||
| @@ -471,7 +471,7 @@ void ipoib_ib_dev_flush_heavy(struct work_struct *work); | |||
| 471 | void ipoib_pkey_event(struct work_struct *work); | 471 | void ipoib_pkey_event(struct work_struct *work); |
| 472 | void ipoib_ib_dev_cleanup(struct net_device *dev); | 472 | void ipoib_ib_dev_cleanup(struct net_device *dev); |
| 473 | 473 | ||
| 474 | int ipoib_ib_dev_open(struct net_device *dev); | 474 | int ipoib_ib_dev_open(struct net_device *dev, int flush); |
| 475 | int ipoib_ib_dev_up(struct net_device *dev); | 475 | int ipoib_ib_dev_up(struct net_device *dev); |
| 476 | int ipoib_ib_dev_down(struct net_device *dev, int flush); | 476 | int ipoib_ib_dev_down(struct net_device *dev, int flush); |
| 477 | int ipoib_ib_dev_stop(struct net_device *dev, int flush); | 477 | int ipoib_ib_dev_stop(struct net_device *dev, int flush); |
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_ib.c b/drivers/infiniband/ulp/ipoib/ipoib_ib.c index be8f971edbec..9dcb2c9e758a 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib_ib.c +++ b/drivers/infiniband/ulp/ipoib/ipoib_ib.c | |||
| @@ -664,7 +664,7 @@ static void ipoib_ib_tx_timer_func(unsigned long ctx) | |||
| 664 | drain_tx_cq((struct net_device *)ctx); | 664 | drain_tx_cq((struct net_device *)ctx); |
| 665 | } | 665 | } |
| 666 | 666 | ||
| 667 | int ipoib_ib_dev_open(struct net_device *dev) | 667 | int ipoib_ib_dev_open(struct net_device *dev, int flush) |
| 668 | { | 668 | { |
| 669 | struct ipoib_dev_priv *priv = netdev_priv(dev); | 669 | struct ipoib_dev_priv *priv = netdev_priv(dev); |
| 670 | int ret; | 670 | int ret; |
| @@ -705,7 +705,7 @@ int ipoib_ib_dev_open(struct net_device *dev) | |||
| 705 | dev_stop: | 705 | dev_stop: |
| 706 | if (!test_and_set_bit(IPOIB_FLAG_INITIALIZED, &priv->flags)) | 706 | if (!test_and_set_bit(IPOIB_FLAG_INITIALIZED, &priv->flags)) |
| 707 | napi_enable(&priv->napi); | 707 | napi_enable(&priv->napi); |
| 708 | ipoib_ib_dev_stop(dev, 1); | 708 | ipoib_ib_dev_stop(dev, flush); |
| 709 | return -1; | 709 | return -1; |
| 710 | } | 710 | } |
| 711 | 711 | ||
| @@ -916,7 +916,7 @@ int ipoib_ib_dev_init(struct net_device *dev, struct ib_device *ca, int port) | |||
| 916 | (unsigned long) dev); | 916 | (unsigned long) dev); |
| 917 | 917 | ||
| 918 | if (dev->flags & IFF_UP) { | 918 | if (dev->flags & IFF_UP) { |
| 919 | if (ipoib_ib_dev_open(dev)) { | 919 | if (ipoib_ib_dev_open(dev, 1)) { |
| 920 | ipoib_transport_dev_cleanup(dev); | 920 | ipoib_transport_dev_cleanup(dev); |
| 921 | return -ENODEV; | 921 | return -ENODEV; |
| 922 | } | 922 | } |
| @@ -1033,7 +1033,7 @@ static void __ipoib_ib_dev_flush(struct ipoib_dev_priv *priv, | |||
| 1033 | 1033 | ||
| 1034 | if (level == IPOIB_FLUSH_HEAVY) { | 1034 | if (level == IPOIB_FLUSH_HEAVY) { |
| 1035 | ipoib_ib_dev_stop(dev, 0); | 1035 | ipoib_ib_dev_stop(dev, 0); |
| 1036 | ipoib_ib_dev_open(dev); | 1036 | ipoib_ib_dev_open(dev, 0); |
| 1037 | } | 1037 | } |
| 1038 | 1038 | ||
| 1039 | /* | 1039 | /* |
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_main.c b/drivers/infiniband/ulp/ipoib/ipoib_main.c index 35acbd41a5f7..1bf994a96860 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib_main.c +++ b/drivers/infiniband/ulp/ipoib/ipoib_main.c | |||
| @@ -114,7 +114,7 @@ int ipoib_open(struct net_device *dev) | |||
| 114 | if (!test_bit(IPOIB_PKEY_ASSIGNED, &priv->flags)) | 114 | if (!test_bit(IPOIB_PKEY_ASSIGNED, &priv->flags)) |
| 115 | return 0; | 115 | return 0; |
| 116 | 116 | ||
| 117 | if (ipoib_ib_dev_open(dev)) | 117 | if (ipoib_ib_dev_open(dev, 1)) |
| 118 | goto err_disable; | 118 | goto err_disable; |
| 119 | 119 | ||
| 120 | if (ipoib_ib_dev_up(dev)) | 120 | if (ipoib_ib_dev_up(dev)) |
