ifb.c (9edd576d89a5b6d3e136d7dcab654d887c0d25b7) | ifb.c (f2cedb63df14342ad40a8b5b324fc5d94a60b665) |
---|---|
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. --- 170 unchanged lines hidden (view full) --- 179 dev->tx_queue_len = TX_Q_LIMIT; 180 181 dev->features |= IFB_FEATURES; 182 dev->vlan_features |= IFB_FEATURES; 183 184 dev->flags |= IFF_NOARP; 185 dev->flags &= ~IFF_MULTICAST; 186 dev->priv_flags &= ~(IFF_XMIT_DST_RELEASE | IFF_TX_SKB_SHARING); | 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. --- 170 unchanged lines hidden (view full) --- 179 dev->tx_queue_len = TX_Q_LIMIT; 180 181 dev->features |= IFB_FEATURES; 182 dev->vlan_features |= IFB_FEATURES; 183 184 dev->flags |= IFF_NOARP; 185 dev->flags &= ~IFF_MULTICAST; 186 dev->priv_flags &= ~(IFF_XMIT_DST_RELEASE | IFF_TX_SKB_SHARING); |
187 random_ether_addr(dev->dev_addr); | 187 eth_hw_addr_random(dev); |
188} 189 190static netdev_tx_t ifb_xmit(struct sk_buff *skb, struct net_device *dev) 191{ 192 struct ifb_private *dp = netdev_priv(dev); 193 u32 from = G_TC_FROM(skb->tc_verd); 194 195 u64_stats_update_begin(&dp->rsync); --- 117 unchanged lines hidden --- | 188} 189 190static netdev_tx_t ifb_xmit(struct sk_buff *skb, struct net_device *dev) 191{ 192 struct ifb_private *dp = netdev_priv(dev); 193 u32 from = G_TC_FROM(skb->tc_verd); 194 195 u64_stats_update_begin(&dp->rsync); --- 117 unchanged lines hidden --- |