dev_alloc_skb, skb_copy

From: raj (mansa_dev_at_yahoo.com)
Date: 09/30/03


Date: 30 Sep 2003 07:26:00 -0700

hi,
I am working on the bridging code.
Came across "Out of Memory" problem.
I don't know what is causing that.
Most importantly I am doing two things:
1) I'm using "dev_alloc_skb" to create new buffer to transmit
    new packets using 'br_flood_forward()' but I am not freeing
    that assuming that dev_queue_xmit() function will take care
    of that, correct me if I am wrong.
2) I'm using "skb_copy" to duplicate the packet and use it
    instead of the original, while the original is queued.
    something like:

                   struct sk_buff *skbc = skb_copy(skb, GFP_ATOMIC);

                if(skbc==NULL) {
                                        kfree_skb(skb);
                                        return 0;
                }
               .... do some processing with original 'skb'.....
                br_flood_forward(br, skb, 0);

               .... do some processing with duplicate, skbc .....
               br_flood_forward(br, skbc, 0);
    And, I am not freeing the copy either assuming it will be freed
   at dev_queue_xmit().

I appreciate if any one can throw me some pointers.

Thanx,

Raj
ROI, PA



Relevant Pages

  • Re: dev_alloc_skb, skb_copy
    ... In article, raj wrote: ... >I am working on the bridging code. ... >I don't know what is causing that. ... Wei ...
    (comp.os.linux.development.system)
  • dev_alloc_skb, skb_copy
    ... I am working on the bridging code. ... Came across "Out of Memory" problem. ... I don't know what is causing that. ... Raj ...
    (comp.os.linux.development.system)
  • Re: Generic Host Process for Win32 Services -- 100% CPU usage
    ... The RtlAllocateHeap is a function used for memory ... The PID changes each time because most processes are given an individual ... started causing "CPU usage" to hit 100.00%, ... When I Suspend this subitem, ...
    (microsoft.public.windowsxp.general)
  • Re: Blue screen when trying to install XP.
    ... Sounds like a hardware issue. ... pieces of hardware, drives, controllers, memory, cables and so on that could ... be causing this problem. ... > SATA hard disk, Kingston memory. ...
    (microsoft.public.windowsxp.hardware)
  • Re: msvcrt.dll error please help !!!!!!!!!!
    ... created some appointments from my program which had corrupt recurring ... Memory could not be read. ... > Don't know what is causing that error, but MSVCRT.DLL is the Visual C ...
    (microsoft.public.vb.enterprise)