Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 352791
b: refs/heads/master
c: b3f92b6
h: refs/heads/master
i:
  352789: a01e6cb
  352787: 111bc72
  352783: ea81434
v: v3
  • Loading branch information
Doug Goldstein authored and David S. Miller committed Feb 19, 2013
1 parent fc59491 commit 51b9e04
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0896341a44bf04bf6149d9307fe4686006f3eee1
refs/heads/master: b3f92b63c4c793142751d029ae0037fb8ab403a0
6 changes: 6 additions & 0 deletions trunk/drivers/net/bonding/bond_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4264,6 +4264,10 @@ static const struct net_device_ops bond_netdev_ops = {
.ndo_fix_features = bond_fix_features,
};

static const struct device_type bond_type = {
.name = "bond",
};

static void bond_destructor(struct net_device *bond_dev)
{
struct bonding *bond = netdev_priv(bond_dev);
Expand Down Expand Up @@ -4294,6 +4298,8 @@ static void bond_setup(struct net_device *bond_dev)

bond_dev->destructor = bond_destructor;

SET_NETDEV_DEVTYPE(bond_dev, &bond_type);

/* Initialize the device options */
bond_dev->tx_queue_len = 0;
bond_dev->flags |= IFF_MASTER|IFF_MULTICAST;
Expand Down

0 comments on commit 51b9e04

Please sign in to comment.