5776c30293
If the packet_error bit in the completion descriptor is set, the
remainder of the descriptor and data are invalid. PKT_RX_MAC_ERR
was set in the mbuf->ol_flags if packet_error was set and used
later to indicate an error packet. But since PKT_RX_MAC_ERR is
defined as 0, mbuf flags and packet types and length were being
misinterpreted.
Make the function enic_cq_rx_to_pkt_err_flags() return true for error
packets and use the return value instead of mbuf->ol_flags to indicate
error packets. Also remove warning for error packets and rely on
rx_error stats.
Fixes:
|
||
---|---|---|
.. | ||
af_packet | ||
bnx2x | ||
bonding | ||
cxgbe | ||
e1000 | ||
ena | ||
enic | ||
fm10k | ||
i40e | ||
ixgbe | ||
mlx4 | ||
mlx5 | ||
mpipe | ||
nfp | ||
null | ||
pcap | ||
ring | ||
szedata2 | ||
vhost | ||
virtio | ||
vmxnet3 | ||
xenvirt | ||
Makefile |