linux-wpan.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ndo_star_xmit() - resevered head and tailroom
@ 2018-06-01 16:14 Alexander Aring
  0 siblings, 0 replies; only message in thread
From: Alexander Aring @ 2018-06-01 16:14 UTC (permalink / raw)
  To: netdev; +Cc: stefan, linux-wpan, kernel

Hi netdev community,

I am again on bug fixing in 6lowpan branch and thought that my
needed_headroom and needed_tailroom of net_device are available inside
my ndo_start_xmit() callback.

In case of a UDP socket, it was not the case. I send a fix now to use
skb_expand_copy() to make sure this space is available. (I need to
unshare the buffer anyway).

I am just curious is this suppose to work like that? I cannot believe
that I need to run a realloc() inside my ndo_start_xmit(). If possible,
when the net_device is known at socket layer it should allocate the
necessary space and I thought this is the designed transmit flow.

- Alex

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-06-01 16:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-01 16:14 ndo_star_xmit() - resevered head and tailroom Alexander Aring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).