RDMA/nes: Convert timers to use timer_setup()
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. A pointer from nesadapter back to nesdev was added. Cc: Faisal Latif <faisal.latif@intel.com> Cc: Doug Ledford <dledford@redhat.com> Cc: Sean Hefty <sean.hefty@intel.com> Cc: Hal Rosenstock <hal.rosenstock@gmail.com> Cc: linux-rdma@vger.kernel.org Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Doug Ledford <dledford@redhat.com>
这个提交包含在:
@@ -1746,8 +1746,7 @@ struct net_device *nes_netdev_init(struct nes_device *nesdev,
|
||||
nesvnic->rdma_enabled = 0;
|
||||
}
|
||||
nesvnic->nic_cq.cq_number = nesvnic->nic.qp_id;
|
||||
init_timer(&nesvnic->event_timer);
|
||||
nesvnic->event_timer.function = NULL;
|
||||
timer_setup(&nesvnic->event_timer, NULL, 0);
|
||||
spin_lock_init(&nesvnic->tx_lock);
|
||||
spin_lock_init(&nesvnic->port_ibevent_lock);
|
||||
nesdev->netdev[nesdev->netdev_count] = netdev;
|
||||
|
在新工单中引用
屏蔽一个用户