lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #49914] lwip_sendmsg uses PBUF_REF pbufs


From: Joel Cunningham
Subject: [lwip-devel] [bug #49914] lwip_sendmsg uses PBUF_REF pbufs
Date: Mon, 9 Jan 2017 23:11:39 +0000 (UTC)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_2) AppleWebKit/602.3.12 (KHTML, like Gecko) Version/10.0.2 Safari/602.3.12

Follow-up Comment #12, bug #49914 (project lwip):

I'm curious to see how the Linux driver for that hardware handles the
alignment.  I'm somewhat familiar with Linux socket buffers and did a little
digging.

Looks like there is a default alignment applied in alloc_skb() (__alloc_skb):
http://lxr.free-electrons.com/source/net/core/skbuff.c#L203

There is also evidence here that the driver can't specify arbitrary alignments
for TX buffers and must handle a mis-match by making a copy:

http://www.gossamer-threads.com/lists/linux/kernel/1108227

Any chance you can look at the Linux driver?

Maybe we could have a feature where PBUF_RAM alignment could be specified
during compilation.  This might be tricky if there are multiple netifs with
different requirements

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?49914>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]