vport-netdev.c (09ce069dff607f86dcdeb541d20734a8f42478c5) | vport-netdev.c (7d5437c709ded4f152cb8b305d17972d6707f20c) |
---|---|
1/* 2 * Copyright (c) 2007-2012 Nicira, Inc. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of version 2 of the GNU General Public 6 * License as published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope that it will be useful, but --- 37 unchanged lines hidden (view full) --- 46 */ 47 skb = skb_share_check(skb, GFP_ATOMIC); 48 if (unlikely(!skb)) 49 return; 50 51 skb_push(skb, ETH_HLEN); 52 ovs_skb_postpush_rcsum(skb, skb->data, ETH_HLEN); 53 | 1/* 2 * Copyright (c) 2007-2012 Nicira, Inc. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of version 2 of the GNU General Public 6 * License as published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope that it will be useful, but --- 37 unchanged lines hidden (view full) --- 46 */ 47 skb = skb_share_check(skb, GFP_ATOMIC); 48 if (unlikely(!skb)) 49 return; 50 51 skb_push(skb, ETH_HLEN); 52 ovs_skb_postpush_rcsum(skb, skb->data, ETH_HLEN); 53 |
54 ovs_vport_receive(vport, skb); | 54 ovs_vport_receive(vport, skb, NULL); |
55 return; 56 57error: 58 kfree_skb(skb); 59} 60 61/* Called with rcu_read_lock and bottom-halves disabled. */ 62static rx_handler_result_t netdev_frame_hook(struct sk_buff **pskb) --- 143 unchanged lines hidden --- | 55 return; 56 57error: 58 kfree_skb(skb); 59} 60 61/* Called with rcu_read_lock and bottom-halves disabled. */ 62static rx_handler_result_t netdev_frame_hook(struct sk_buff **pskb) --- 143 unchanged lines hidden --- |