Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135377
b: refs/heads/master
c: dde0975
h: refs/heads/master
i:
  135375: 048e34d
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Mar 22, 2009
1 parent cc9fd07 commit abc9a04
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 788dee0a954745a182f9341539e5e0fe874b48fc
refs/heads/master: dde09758557120cb71fb760cfeaed1b8e27209ef
9 changes: 6 additions & 3 deletions trunk/net/atm/clip.c
Original file line number Diff line number Diff line change
Expand Up @@ -552,10 +552,13 @@ static int clip_setentry(struct atm_vcc *vcc, __be32 ip)
return error;
}

static const struct net_device_ops clip_netdev_ops = {
.ndo_start_xmit = clip_start_xmit,
};

static void clip_setup(struct net_device *dev)
{
dev->hard_start_xmit = clip_start_xmit;
/* sg_xmit ... */
dev->netdev_ops = &clip_netdev_ops;
dev->type = ARPHRD_ATM;
dev->hard_header_len = RFC1483LLC_LEN;
dev->mtu = RFC1626_MTU;
Expand Down Expand Up @@ -615,7 +618,7 @@ static int clip_device_event(struct notifier_block *this, unsigned long event,
}

/* ignore non-CLIP devices */
if (dev->type != ARPHRD_ATM || dev->hard_start_xmit != clip_start_xmit)
if (dev->type != ARPHRD_ATM || dev->netdev_ops != &clip_netdev_ops)
return NOTIFY_DONE;

switch (event) {
Expand Down

0 comments on commit abc9a04

Please sign in to comment.