Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 121895
b: refs/heads/master
c: 8dfcdf3
h: refs/heads/master
i:
  121893: a1ee4f7
  121891: ec32014
  121887: 4e2e486
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Nov 20, 2008
1 parent 2a26f55 commit 4e3c3ab
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c02373bf2759dd210dc8c72c9c9b4a8f1c279cac
refs/heads/master: 8dfcdf342d9e8294a3292005f9158022289dfd67
11 changes: 8 additions & 3 deletions trunk/drivers/net/ifb.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,18 +137,23 @@ static void ri_tasklet(unsigned long dev)

}

static const struct net_device_ops ifb_netdev_ops = {
.ndo_validate_addr = eth_validate_addr,
.ndo_open = ifb_open,
.ndo_stop = ifb_close,
};

static void ifb_setup(struct net_device *dev)
{
/* Initialize the device structure. */
dev->hard_start_xmit = ifb_xmit;
dev->open = &ifb_open;
dev->stop = &ifb_close;
dev->destructor = free_netdev;
dev->netdev_ops = &ifb_netdev_ops;

/* Fill in device structure with ethernet-generic values. */
ether_setup(dev);
dev->tx_queue_len = TX_Q_LIMIT;
dev->change_mtu = NULL;

dev->flags |= IFF_NOARP;
dev->flags &= ~IFF_MULTICAST;
random_ether_addr(dev->dev_addr);
Expand Down

0 comments on commit 4e3c3ab

Please sign in to comment.