Skip to content

Commit

Permalink
Merge "Inline skb_frag_add_head in 4.3 later kernels." into R3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Jul 31, 2016
2 parents 24cf44f + 97e923f commit 8887405
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions linux/vrouter_mod.c
Expand Up @@ -224,7 +224,12 @@ lh_palloc_head(struct vr_packet *pkt, unsigned int size)
npkt->vp_type = pkt->vp_type;

skb_frag_list_init(skb_head);
#if (LINUX_VERSION_CODE <= KERNEL_VERSION(4,3,0))
skb_frag_add_head(skb_head, skb);
#else
skb->next = skb_shinfo(skb_head)->frag_list;
skb_shinfo(skb_head)->frag_list = skb;
#endif
skb_head->len += skb->len;
skb_head->data_len = skb->len;
skb_head->protocol = skb->protocol;
Expand Down

0 comments on commit 8887405

Please sign in to comment.