On Wed, 14 May 2014 17:56:57 +0200 Alexander Aring <alex.ar...@gmail.com> wrote:
> > + > > + frag = alloc_skb(real_dev->hard_header_len + > > + real_dev->needed_tailroom + size, > > + GFP_ATOMIC); > > Why not keep netdev_alloc_skb for the real_dev? > > But then we need to use dev_kfree_skb. Because netdev_alloc_skb allocates "for RX", which uses different allocation flags internally and might do the wrong thing when memory is tight. Also, all skb free funtions are essentially the same, where dev_kfree_skb == kfree_skb by a macro definition, and what remains differs pretty much only in how it shows up in traces. They all call __kfree_skb internally. > > - Alex ------------------------------------------------------------------------------ "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs _______________________________________________ Linux-zigbee-devel mailing list Linux-zigbee-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel