Skip to contentSkip to conversation

Network Packet Buffers: raspberrypi: variable uchar *net_rx_packets[PKTBUFSRX] in net/net.c

U-Boot Duncan Hare 2 participants 3 messages Apr 17, 2018 – Apr 23, 2018

lore
Share & tools
lore
#0 lore raw

Simon

Is it possible to modify the network driver for the raspberry pi to use the buffer pool defined in net.c?

It appears to have a single buffer, defined in the driver.

In addition the buffer pool should be defined in memory outside the u-boot image. With the current definition is the buffer pool a part of the u-boot image?

Thanks
Duncan Hare

#1 lore raw

Hi Duncan,

Quoted 10 lines · Duncan Hare

Simon

Is it possible to modify the network driver for the raspberry pi to use the buffer pool defined in net.c?

It appears to have a single buffer, defined in the driver.

In addition the buffer pool should be defined in memory outside the u-boot image. With the current definition is the buffer pool a part of the u-boot image?

Are you referring to the USB driver? If so, which one? Normally the buffers are in BSS if they are not allocated with malloc(). So the buffers are not in the U-Boot image in flash, but do take up space in RAM at run-time after relocation.

Regards,
Simon

#2 lore raw

From: Simon Glass <[email protected]>

To: Duncan Hare <[email protected]>
Cc: Joe Hershberger <[email protected]>; U-Boot Mailing List <[email protected]>
Sent: Sunday, April 22, 2018 1:15 PM
Subject: Re: Network Packet Buffers: raspberrypi: variable uchar *net_rx_packets[PKTBUFSRX] in net/net.c

Hi Duncan,

Quoted 6 lines · Duncan Hare
Quoted 5 lines

Simon

Is it possible to modify the network driver for the raspberry pi to use the buffer pool defined in net.c?

Quoted 7 lines
Quoted 5 lines

It appears to have a single buffer, defined in the driver.

In addition the buffer pool should be defined in memory outside the u-boot image. With the current definition is the buffer pool a part of the u-boot image?

Are you referring to the USB driver? If so, which one? Normally the buffers are in BSS if they are not allocated with malloc(). So the buffers are not in the U-Boot image in flash, >but do take up space in RAM at run-time after relocation.

Do not recall the filename of the driver.

Quoted 2 lines

Regards,
Simon

Hi Simon
Ethernet driver. But it might also be the usb driver . I don't know the detail at that level of the raspberry soc.  Duncan Hare

714 931 7952