Skip to content

Commit

Permalink
Inline skb_frag_add_head in 4.3 later kernels.
Browse files Browse the repository at this point in the history
skb_frag_add_head has been removed from 4.3

Closes-Bug: #1572124
Change-Id: I77c182364841331d47357e3fe32b375b07821e24
  • Loading branch information
pupapaik committed Jul 20, 2016
1 parent 43a5ed9 commit 97e923f
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 97e923f

Please sign in to comment.