[patch #9686] Add payload buffer alignment option

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[patch #9686] Add payload buffer alignment option

Simon Goldschmidt
URL:
  <http://savannah.nongnu.org/patch/?9686>

                 Summary: Add payload buffer alignment option
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: spider1982
            Submitted on: Tue 04 Sep 2018 07:59:56 AM UTC
                Category: pbufs
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email:
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

We can use pbuf directly for zero-copy implementation with DMA but in some
system DMA required aligned buffer. However the lwip aligns the buffer
relative to the layer offset and begin of payload buffer remains unaligned.
This patch add alignment option with 2 cases. First case, default, preserves
current behavior. Second case is changed payload alignment to begin of payload
buffer alignment.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue 04 Sep 2018 07:59:56 AM UTC  Name:
add-payload-alignment-type-option.patch  Size: 3KiB   By: spider1982

<http://savannah.nongnu.org/patch/download.php?file_id=44930>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?9686>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/


_______________________________________________
lwip-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-devel
Reply | Threaded
Open this post in threaded view
|

[patch #9686] Add payload buffer alignment option

Simon Goldschmidt
Follow-up Comment #1, patch #9686 (project lwip):

Something like this is in the queue for after the 2.1.0 release to better
support DMA netifs.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?9686>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/


_______________________________________________
lwip-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-devel