vport-netdev.c (62b9c8d0372d11a5e048c6b56997374901e0445b) | vport-netdev.c (12eb18f7115884b0c1513dda31b0051121116b3a) |
---|---|
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 --- 63 unchanged lines hidden (view full) --- 72 73 vport = ovs_netdev_get_vport(skb->dev); 74 75 netdev_port_receive(vport, skb); 76 77 return RX_HANDLER_CONSUMED; 78} 79 | 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 --- 63 unchanged lines hidden (view full) --- 72 73 vport = ovs_netdev_get_vport(skb->dev); 74 75 netdev_port_receive(vport, skb); 76 77 return RX_HANDLER_CONSUMED; 78} 79 |
80static struct net_device *get_dpdev(struct datapath *dp) | 80static struct net_device *get_dpdev(const struct datapath *dp) |
81{ 82 struct vport *local; 83 84 local = ovs_vport_ovsl(dp, OVSP_LOCAL); 85 BUG_ON(!local); 86 return netdev_vport_priv(local)->dev; 87} 88 --- 157 unchanged lines hidden --- | 81{ 82 struct vport *local; 83 84 local = ovs_vport_ovsl(dp, OVSP_LOCAL); 85 BUG_ON(!local); 86 return netdev_vport_priv(local)->dev; 87} 88 --- 157 unchanged lines hidden --- |