diff options
| author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2019-03-27 11:38:38 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-04-17 08:38:42 +0200 |
| commit | 81da1314596c88aa9e0e8dd610812b3f86afa5a5 (patch) | |
| tree | d73a989f1ed7c3ff8c46fd91a0ee74e90ed4795c /include/linux/errseq.h | |
| parent | c297e881457882b2121d2c539fd7e75a0977f8cd (diff) | |
nfp: validate the return code from dev_queue_xmit()
[ Upstream commit c8ba5b91a04e3e2643e48501c114108802f21cda ]
dev_queue_xmit() may return error codes as well as netdev_tx_t,
and it always consumes the skb. Make sure we always return a
correct netdev_tx_t value.
Fixes: eadfa4c3be99 ("nfp: add stats and xmit helpers for representors")
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: John Hurley <john.hurley@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux/errseq.h')
0 files changed, 0 insertions, 0 deletions
