af_packet: check Tx error
authorJohn W. Linville <linville@tuxdriver.com>
Thu, 27 Aug 2015 17:50:50 +0000 (13:50 -0400)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 20 Oct 2015 15:59:19 +0000 (17:59 +0200)
commitb89664c07b02ea7fb6f90210f1a6ae5b6e990787
tree4f49fa40d1b02f9248b2e1a9648bbf5f0ae330e7
parent43254a336780a7d21c525097794a70a21a7fa2c4
af_packet: check Tx error

Coverity CID # 13200

If sendto fails, the packets will not get transmitted.  Return 0 as
the number of packets transmitted.

Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/af_packet/rte_eth_af_packet.c