]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: ti: cpsw: return NET_XMIT_DROP if skb_padto failed
authorIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Sat, 11 Feb 2017 01:49:57 +0000 (03:49 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 12 Feb 2017 02:26:57 +0000 (21:26 -0500)
commitaa68f49614f4f408c3925307225da0e82ebeebfa
tree5ed30ec961fa8e1333a3818bacc5b0607c20a210
parent49556c894cd6d5319a31858b8f41f22f5ccd57fb
net: ethernet: ti: cpsw: return NET_XMIT_DROP if skb_padto failed

If skb_padto failed the skb has been dropped already, so it was
consumed, but it doesn't mean it was sent, thus no need to update
queue tx time, etc. So, return NET_XMIT_DROP as more appropriate.

Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c