ifb.c (5a2dd72abdae75ea2960145e0549635ce4e0be96) | ifb.c (93f154b594fe47e4a7e5358b309add449a046cd3) |
---|---|
1/* drivers/net/ifb.c: 2 3 The purpose of this driver is to provide a device that allows 4 for sharing of resources: 5 6 1) qdiscs/policies that are per device as opposed to system wide. 7 ifb allows for a device which can be redirected to thus providing 8 an impression of sharing. --- 142 unchanged lines hidden (view full) --- 151 dev->netdev_ops = &ifb_netdev_ops; 152 153 /* Fill in device structure with ethernet-generic values. */ 154 ether_setup(dev); 155 dev->tx_queue_len = TX_Q_LIMIT; 156 157 dev->flags |= IFF_NOARP; 158 dev->flags &= ~IFF_MULTICAST; | 1/* drivers/net/ifb.c: 2 3 The purpose of this driver is to provide a device that allows 4 for sharing of resources: 5 6 1) qdiscs/policies that are per device as opposed to system wide. 7 ifb allows for a device which can be redirected to thus providing 8 an impression of sharing. --- 142 unchanged lines hidden (view full) --- 151 dev->netdev_ops = &ifb_netdev_ops; 152 153 /* Fill in device structure with ethernet-generic values. */ 154 ether_setup(dev); 155 dev->tx_queue_len = TX_Q_LIMIT; 156 157 dev->flags |= IFF_NOARP; 158 dev->flags &= ~IFF_MULTICAST; |
159 dev->priv_flags &= ~IFF_XMIT_DST_RELEASE; |
|
159 random_ether_addr(dev->dev_addr); 160} 161 162static int ifb_xmit(struct sk_buff *skb, struct net_device *dev) 163{ 164 struct ifb_private *dp = netdev_priv(dev); 165 struct net_device_stats *stats = &dev->stats; 166 int ret = 0; --- 123 unchanged lines hidden --- | 160 random_ether_addr(dev->dev_addr); 161} 162 163static int ifb_xmit(struct sk_buff *skb, struct net_device *dev) 164{ 165 struct ifb_private *dp = netdev_priv(dev); 166 struct net_device_stats *stats = &dev->stats; 167 int ret = 0; --- 123 unchanged lines hidden --- |