Skip to content

Commit 78a202f

Browse files
Intiyaz Bashadavem330
authored andcommitted
liquidio: Removed one line function stop_q
Removing one line function stop_q Signed-off-by: Intiyaz Basha <[email protected]> Acked-by: Derek Chickles <[email protected]> Signed-off-by: Felix Manlunas <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 2a2faba commit 78a202f

File tree

2 files changed

+2
-22
lines changed

2 files changed

+2
-22
lines changed

drivers/net/ethernet/cavium/liquidio/lio_main.c

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -523,16 +523,6 @@ static inline void wake_q(struct net_device *netdev, int q)
523523
netif_wake_subqueue(netdev, q);
524524
}
525525

526-
/**
527-
* \brief Stop a queue
528-
* @param netdev network device
529-
* @param q which queue to stop
530-
*/
531-
static inline void stop_q(struct net_device *netdev, int q)
532-
{
533-
netif_stop_subqueue(netdev, q);
534-
}
535-
536526
/**
537527
* \brief Check Tx queue status, and take appropriate action
538528
* @param lio per-network private data
@@ -2750,7 +2740,7 @@ static int liquidio_xmit(struct sk_buff *skb, struct net_device *netdev)
27502740
netif_info(lio, tx_queued, lio->netdev, "Transmit queued successfully\n");
27512741

27522742
if (status == IQ_SEND_STOP)
2753-
stop_q(netdev, q_idx);
2743+
netif_stop_subqueue(netdev, q_idx);
27542744

27552745
netif_trans_update(netdev);
27562746

drivers/net/ethernet/cavium/liquidio/lio_vf_main.c

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -294,16 +294,6 @@ static void wake_q(struct net_device *netdev, int q)
294294
netif_wake_subqueue(netdev, q);
295295
}
296296

297-
/**
298-
* \brief Stop a queue
299-
* @param netdev network device
300-
* @param q which queue to stop
301-
*/
302-
static void stop_q(struct net_device *netdev, int q)
303-
{
304-
netif_stop_subqueue(netdev, q);
305-
}
306-
307297
/**
308298
* Remove the node at the head of the list. The list would be empty at
309299
* the end of this call if there are no more nodes in the list.
@@ -1803,7 +1793,7 @@ static int liquidio_xmit(struct sk_buff *skb, struct net_device *netdev)
18031793
if (status == IQ_SEND_STOP) {
18041794
dev_err(&oct->pci_dev->dev, "Rcvd IQ_SEND_STOP signal; stopping IQ-%d\n",
18051795
iq_no);
1806-
stop_q(netdev, q_idx);
1796+
netif_stop_subqueue(netdev, q_idx);
18071797
}
18081798

18091799
netif_trans_update(netdev);

0 commit comments

Comments
 (0)