Search Linux Wireless

Re: [PATCH 2/2] usbnet: add rx queue pausing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Quoting "Johannes Berg" <johannes@xxxxxxxxxxxxxxxx>:

On Tue, 2009-08-11 at 17:52 +0300, Jussi Kivilinna wrote:

+	if (test_bit(EVENT_RX_PAUSED, &dev->flags)) {
+		struct sk_buff *skb2;
+
+		skb2 = skb_clone(skb, GFP_ATOMIC);
+		if (unlikely(!skb2))
+			return;
+
+		skb_queue_tail(&dev->rxq_pause, skb2);
+		kfree_skb(skb);

Why clone and then free the original?


Ah, I had some problems and let this in. No reason, works fine without cloning. I'll post v2 soon.

-Jussi

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux