]> git.baikalelectronics.ru Git - kernel.git/commit
6lowpan: handle dev_queue_xmit() error code properly
authorAlan Ott <alan@signal11.us>
Wed, 3 Apr 2013 04:00:58 +0000 (04:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 7 Apr 2013 21:06:44 +0000 (17:06 -0400)
commit2549de19644b7decdf65a0e7d55f0ef816e7c2bd
tree7f9e5d634244531f1d76adb2aaeb9e501f085295
parent3ac39564424d7c0ca379a1327afdd3ba1c0248e0
6lowpan: handle dev_queue_xmit() error code properly

dev_queue_xmit() will return a positive value if the packet could not be
queued, often because the real network device (in our case the mac802154
wpan device) has its queue stopped.  lowpan_xmit() should handle the
positive return code (for the debug statement) and return that value to
the higher layer so the higher layer will retry sending the packet.

Signed-off-by: Alan Ott <alan@signal11.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ieee802154/6lowpan.c