Skip to content

[BUG] Version 4.3.2 breaks the DriverSAM network driver #1262

@evpopov

Description

@evpopov

Describe the bug
This check
was added to BufferAllocation_1 in this most recent version 4.3.2. The check results in all buffer requests with a size of more than 1514 to fail.

The SAME70 Ethernet driver that I'm using and possibly other drivers request much larger buffers during initialization.
DriverSAM example where the size is 1536 + some padding
Note: I consider "1536 + some padding" to be the correct size for the buffers, because in many cases ( including my own ) the maximum Ethernet packet is larger than 1514 due to things like the possible inclusion of the FCS field and maybe multiple VLAN tags.

The result of the new check is that the driver initialization fails.
I know how to fix this for myself, but I'm creating this issue to raise awareness. The task of allocating network buffers is delegated to the network driver as stated in this comment and I don't think it's right for pxGetNetworkBufferWithDescriptor() to impose it's own random restriction when .

Target

  • SAME70 and probably others

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions