Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127788
b: refs/heads/master
c: ed8cf43
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Jan 8, 2009
1 parent f465b25 commit 2685273
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 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: 04fb5f735e70a27f7dd06a5e349c003fd5d4bfa2
refs/heads/master: ed8cf436caccb7f464135b0a9eba0e7624299826
13 changes: 8 additions & 5 deletions trunk/drivers/net/plip.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,13 @@ static const struct header_ops plip_header_ops = {
.cache = plip_hard_header_cache,
};

static const struct net_device_ops plip_netdev_ops = {
.ndo_open = plip_open,
.ndo_stop = plip_close,
.ndo_start_xmit = plip_tx_packet,
.ndo_do_ioctl = plip_ioctl,
};

/* Entry point of PLIP driver.
Probe the hardware, and register/initialize the driver.
Expand All @@ -280,15 +287,11 @@ plip_init_netdev(struct net_device *dev)
struct net_local *nl = netdev_priv(dev);

/* Then, override parts of it */
dev->hard_start_xmit = plip_tx_packet;
dev->open = plip_open;
dev->stop = plip_close;
dev->do_ioctl = plip_ioctl;

dev->tx_queue_len = 10;
dev->flags = IFF_POINTOPOINT|IFF_NOARP;
memset(dev->dev_addr, 0xfc, ETH_ALEN);

dev->netdev_ops = &plip_netdev_ops;
dev->header_ops = &plip_header_ops;


Expand Down

0 comments on commit 2685273

Please sign in to comment.