mirror of
https://github.com/openvswitch/ovs
synced 2025-10-23 14:57:06 +00:00
datapath: backport kfree_skb_list()
Signed-off-by: Pravin B Shelar <pshelar@nicira.com> Acked-by: Jesse Gross <jesse@nicira.com>
This commit is contained in:
@@ -267,3 +267,16 @@ int rpl_pskb_expand_head(struct sk_buff *skb, int nhead, int ntail,
|
||||
EXPORT_SYMBOL(rpl_pskb_expand_head);
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_KFREE_SKB_LIST
|
||||
void rpl_kfree_skb_list(struct sk_buff *segs)
|
||||
{
|
||||
while (segs) {
|
||||
struct sk_buff *next = segs->next;
|
||||
|
||||
kfree_skb(segs);
|
||||
segs = next;
|
||||
}
|
||||
}
|
||||
EXPORT_SYMBOL(rpl_kfree_skb_list);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user