mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
ofed/ipoib: convert to timer_setup linuxKPI
Reviewed by: bz Sponsored by: NVidia networking MFC after: 1 week Differential revision: https://reviews.freebsd.org/D58941
This commit is contained in:
1 parent
814cd91998
commit
fdcb52d036
1 file changed
+6
-4
@@ -608,9 +608,12 @@ static void ipoib_ah_dev_cleanup(struct ipoib_dev_priv *priv)
|
||||
}
|
||||
}
|
||||
|
||||
static void ipoib_ib_tx_timer_func(unsigned long ctx)
|
||||
static void ipoib_ib_tx_timer_func(struct timer_list *timer)
|
||||
{
|
||||
drain_tx_cq((struct ipoib_dev_priv *)ctx);
|
||||
struct ipoib_dev_priv *priv = timer_container_of(priv, timer,
|
||||
poll_timer);
|
||||
|
||||
drain_tx_cq(priv);
|
||||
}
|
||||
|
||||
int ipoib_ib_dev_open(struct ipoib_dev_priv *priv)
|
||||
@@ -866,8 +869,7 @@ int ipoib_ib_dev_init(struct ipoib_dev_priv *priv, struct ib_device *ca, int por
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
setup_timer(&priv->poll_timer, ipoib_ib_tx_timer_func,
|
||||
(unsigned long) priv);
|
||||
timer_setup(&priv->poll_timer, ipoib_ib_tx_timer_func, 0);
|
||||
|
||||
if (if_getflags(dev) & IFF_UP) {
|
||||
if (ipoib_ib_dev_open(priv)) {
|
||||
|
||||
Reference in new issue
Block a user