linux-generic: pktio: classification error handling fixes for loop
linux-generic: pktio: classification error handling fixes for loop

Several minor changes:

- remove 'int j' as it no longer has function
- add 'int failed' to count errors, and return it (or 0 if no failure)
- in_errors counts the packet numbers, not the octets
- in_discards the same, count it with 'discarded'
- in_ucast_pkts should not count these packets
- as a side effect, separate this code path from normal handling completely

Signed-off-by: Zoltan Kiss <045352d2c5c4a454a2aefff6fa815639b332fd1d@linaro.org>
Reviewed-by: Balasubramanian Manoharan <affd9aba178b6c6e9aaff69252817fd03d71ae35@linaro.org>
Signed-off-by: Mike Holmes <ed44c09f4d7f698f5510adc894a872c73e08c8bd@linaro.org>

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