Skip to contentSkip to conversation

RDMA/nes: don't leak skb if carrier down

PATCH In review Florian Westphal 3 participants 3 messages Apr 24, 2016 – Apr 28, 2016 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 RDMA/nes: don't leak skb if carrier down

Alternatively one could free the skb, OTOH I don't think this test is useful so just remove it.

---
Noticed this while working on the TX_LOCKED removal.

drivers/infiniband/hw/nes/nes_nic.c +0 -3
index 3ea9e05..9291453 100644
@@ -500,9 +500,6 @@ static int nes_netdev_start_xmit(struct sk_buff *skb, struct net_device *netdev)
 	 *		skb_shinfo(skb)->nr_frags, skb_is_gso(skb));
 	 */
 
-	if (!netif_carrier_ok(netdev))
-		return NETDEV_TX_OK;
-
 	if (netif_queue_stopped(netdev))
 		return NETDEV_TX_BUSY;
 
Signature · 6 lines
2.7.3

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw
In reply to a message not in the archive

From: Florian Westphal <[email protected]>
Date: Sun, 24 Apr 2016 22:18:59 +0200

Quoted 7 lines

Alternatively one could free the skb, OTOH I don't think this test is useful so just remove it.

---
Noticed this while working on the TX_LOCKED removal.

Assuming Doug will take this.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw
Quoted 6 lines · David Miller

From: Florian Westphal <[email protected]>
Date: Sun, 24 Apr 2016 22:18:59 +0200

Quoted 3 lines

Alternatively one could free the skb, OTOH I don't think this test is useful so just remove it.

Quoted 6 lines
Quoted 4 lines

---
Noticed this while working on the TX_LOCKED removal.

Assuming Doug will take this.

Thanks for mentioning this ;-)

They had sent to netdev and cc:ed linux-rdma, so I took that to mean they intended for you to take it. I'll pick it up for my upcoming pull request.