Thread (3 messages) 3 messages, 2 authors, 2013-09-28

Re: [PATCH v2] bgmac: add support for Byte Queue Limits

From: Eric Dumazet <hidden>
Date: 2013-09-28 23:22:18

On Sat, 2013-09-28 at 16:03 -0700, Eric Dumazet wrote:
Unfortunately, skb->len is unsafe : hardware might already sent the
packet and TX completion have freed it.

You must cache skb->len in a variable before allowing hardware to send
the frame.
More exactly you must call netdev_sent_queue() _before_ giving skb to
hardware, or netdev_completed_queue() might panic.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help