Jarek Poplawski 9a1654ba0b net: Optimize hard_start_xmit() return checking
Recent changes in the TX error propagation require additional checking
and masking of values returned from hard_start_xmit(), mainly to
separate cases where skb was consumed. This aim can be simplified by
changing the order of NETDEV_TX and NET_XMIT codes, because the latter
are treated similarly to negative (ERRNO) values.

After this change much simpler dev_xmit_complete() is also used in
sch_direct_xmit(), so it is moved to netdevice.h.

Additionally NET_RX definitions in netdevice.h are moved up from
between TX codes to avoid confusion while reading the TX comment.

Signed-off-by: Jarek Poplawski <jarkao2@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-11-15 22:08:33 -08:00
..
2009-09-23 22:26:32 +09:30
2009-05-25 01:53:53 -07:00
2009-11-10 22:27:13 -08:00
2009-09-26 20:16:15 -07:00
2009-05-25 01:53:53 -07:00
2009-11-13 20:46:58 -08:00
2009-11-13 20:46:57 -08:00
2009-11-07 00:46:39 -08:00
2009-11-05 22:34:18 -08:00
2009-07-12 12:22:34 -07:00