Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 78a202f0 authored by Intiyaz Basha's avatar Intiyaz Basha Committed by David S. Miller
Browse files

liquidio: Removed one line function stop_q



Removing one line function stop_q

Signed-off-by: default avatarIntiyaz Basha <intiyaz.basha@cavium.com>
Acked-by: default avatarDerek Chickles <derek.chickles@cavium.com>
Signed-off-by: default avatarFelix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2a2fabaf
Loading
Loading
Loading
Loading
+1 −11
Original line number Diff line number Diff line
@@ -523,16 +523,6 @@ static inline void wake_q(struct net_device *netdev, int q)
	netif_wake_subqueue(netdev, q);
}

/**
 * \brief Stop a queue
 * @param netdev network device
 * @param q which queue to stop
 */
static inline void stop_q(struct net_device *netdev, int q)
{
	netif_stop_subqueue(netdev, q);
}

/**
 * \brief Check Tx queue status, and take appropriate action
 * @param lio per-network private data
@@ -2750,7 +2740,7 @@ static int liquidio_xmit(struct sk_buff *skb, struct net_device *netdev)
	netif_info(lio, tx_queued, lio->netdev, "Transmit queued successfully\n");

	if (status == IQ_SEND_STOP)
		stop_q(netdev, q_idx);
		netif_stop_subqueue(netdev, q_idx);

	netif_trans_update(netdev);

+1 −11
Original line number Diff line number Diff line
@@ -294,16 +294,6 @@ static void wake_q(struct net_device *netdev, int q)
	netif_wake_subqueue(netdev, q);
}

/**
 * \brief Stop a queue
 * @param netdev network device
 * @param q which queue to stop
 */
static void stop_q(struct net_device *netdev, int q)
{
	netif_stop_subqueue(netdev, q);
}

/**
 * Remove the node at the head of the list. The list would be empty at
 * 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)
	if (status == IQ_SEND_STOP) {
		dev_err(&oct->pci_dev->dev, "Rcvd IQ_SEND_STOP signal; stopping IQ-%d\n",
			iq_no);
		stop_q(netdev, q_idx);
		netif_stop_subqueue(netdev, q_idx);
	}

	netif_trans_update(netdev);