Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 175532
b: refs/heads/master
c: 2e302eb
h: refs/heads/master
v: v3
  • Loading branch information
chas williams - CONTRACTOR authored and David S. Miller committed Dec 9, 2009
1 parent 5d7b3de commit 476039b
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: 504bb3b58e7314e0fe026da280e8168c1314be3d
refs/heads/master: 2e302ebfeac04beb5a5d6af1ac583c6a1fb76d1a
11 changes: 8 additions & 3 deletions trunk/net/atm/br2684.c
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,12 @@ static const struct net_device_ops br2684_netdev_ops = {
.ndo_validate_addr = eth_validate_addr,
};

static const struct net_device_ops br2684_netdev_ops_routed = {
.ndo_start_xmit = br2684_start_xmit,
.ndo_set_mac_address = br2684_mac_addr,
.ndo_change_mtu = eth_change_mtu
};

static void br2684_setup(struct net_device *netdev)
{
struct br2684_dev *brdev = BRPRIV(netdev);
Expand All @@ -569,11 +575,10 @@ static void br2684_setup(struct net_device *netdev)
static void br2684_setup_routed(struct net_device *netdev)
{
struct br2684_dev *brdev = BRPRIV(netdev);
brdev->net_dev = netdev;

brdev->net_dev = netdev;
netdev->hard_header_len = 0;

netdev->netdev_ops = &br2684_netdev_ops;
netdev->netdev_ops = &br2684_netdev_ops_routed;
netdev->addr_len = 0;
netdev->mtu = 1500;
netdev->type = ARPHRD_PPP;
Expand Down

0 comments on commit 476039b

Please sign in to comment.