blob: 67929ef895acd4b0f2ef3bde30a2e5ffcf877369 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
--- a/drivers/net/ethernet/cavium/cns3xxx_eth.c
+++ b/drivers/net/ethernet/cavium/cns3xxx_eth.c
@@ -653,17 +653,17 @@ static int eth_poll(struct napi_struct *
case 6:
case 13:
case 14:
- if (desc->l4f)
+ if (!desc->l4f) {
+ skb->ip_summed = CHECKSUM_UNNECESSARY;
+ napi_gro_receive(napi, skb);
break;
-
- skb->ip_summed = CHECKSUM_UNNECESSARY;
- break;
+ }
+ /* fall through */
default:
- break;
+ netif_receive_skb(skb);
+ break;
}
- napi_gro_receive(napi, skb);
-
sw->frag_first = NULL;
sw->frag_last = NULL;
}
|