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