提交 d4aa89cc 编写于 作者: S Sowmini Varadhan 提交者: David S. Miller

sunvnet: remove unused variable in maybe_tx_wakeup

The vio_dring_state *dr variable is unused in maybe_tx_wakeup().
As the comments indicate, we call maybe_tx_wakeup() whenever we
get a STOPPED LDC message on the port. If the queue is stopped,
we want to wake it up so that we will send another START message
at the next TX and trigger the consumer to drain the dring.
Signed-off-by: NSowmini Varadhan <sowmini.varadhan@oracle.com>
Signed-off-by: NShannon Nelson <shannon.nelson@oracle.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 2493b842
...@@ -719,12 +719,8 @@ static void maybe_tx_wakeup(struct vnet_port *port) ...@@ -719,12 +719,8 @@ static void maybe_tx_wakeup(struct vnet_port *port)
txq = netdev_get_tx_queue(VNET_PORT_TO_NET_DEVICE(port), txq = netdev_get_tx_queue(VNET_PORT_TO_NET_DEVICE(port),
port->q_index); port->q_index);
__netif_tx_lock(txq, smp_processor_id()); __netif_tx_lock(txq, smp_processor_id());
if (likely(netif_tx_queue_stopped(txq))) { if (likely(netif_tx_queue_stopped(txq)))
struct vio_dring_state *dr;
dr = &port->vio.drings[VIO_DRIVER_TX_RING];
netif_tx_wake_queue(txq); netif_tx_wake_queue(txq);
}
__netif_tx_unlock(txq); __netif_tx_unlock(txq);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册