linux-generic: pktio: recover from transmit errors
linux-generic: pktio: recover from transmit errors

Fix the way transmit errors are handled to avoid getting out of sync
between kernel and user space, which causes transmission to hang.

Fixes bug https://bugs.linaro.org/show_bug.cgi?id=1890

Signed-off-by: Stuart Haslam <1fce01f364ef5298e64e07a42e08efeef153fa98@linaro.org>
Signed-off-by: Maxim Uvarov <db4d16e02ae2d7493db430203537da8b2e34f290@linaro.org>

erachmi/odp,dkrot/odp,nmorey/odp,ravineet-singh/odp,ravineet-singh/odp,erachmi/odp,dkrot/odp,mike-holmes-linaro/odp,ravineet-singh/odp,nmorey/odp,ravineet-singh/odp,dkrot/odp,nmorey/odp,dkrot/odp,mike-holmes-linaro/odp,mike-holmes-linaro/odp,erachmi/odp,erachmi/odp,nmorey/odp,mike-holmes-linaro/odp