{
unsigned int protocol = (status >> 16) & 0x3;
- if (((protocol == RxProtoTCP) && !(status & TCPFail)) ||
- ((protocol == RxProtoUDP) && !(status & UDPFail)))
+ if (likely((protocol == RxProtoTCP) && (!(status & TCPFail))))
return 1;
- else
- return 0;
+ else if ((protocol == RxProtoUDP) && (!(status & UDPFail)))
+ return 1;
+ else if ((protocol == RxProtoIP) && (!(status & IPFail)))
+ return 1;
+ return 0;
}
static int cp_rx_poll(struct napi_struct *napi, int budget)