Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 351225
b: refs/heads/master
c: 7f51c58
h: refs/heads/master
i:
  351223: 7463c5f
v: v3
  • Loading branch information
Flavio Leitner authored and David S. Miller committed Dec 30, 2012
1 parent 24e611a commit f6e9670
Show file tree
Hide file tree
Showing 2 changed files with 18 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: 8093315a91340bca52549044975d8c7f673b28a1
refs/heads/master: 7f51c58731dfb0ef88ff283851a4710cc3335788
17 changes: 17 additions & 0 deletions trunk/drivers/net/team/team.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <net/genetlink.h>
#include <net/netlink.h>
#include <net/sch_generic.h>
#include <generated/utsrelease.h>
#include <linux/if_team.h>

#define DRV_NAME "team"
Expand Down Expand Up @@ -1741,6 +1742,21 @@ static const struct net_device_ops team_netdev_ops = {
.ndo_change_carrier = team_change_carrier,
};

/***********************
* ethtool interface
***********************/

static void team_ethtool_get_drvinfo(struct net_device *dev,
struct ethtool_drvinfo *drvinfo)
{
strncpy(drvinfo->driver, DRV_NAME, 32);
strncpy(drvinfo->version, UTS_RELEASE, 32);
}

static const struct ethtool_ops team_ethtool_ops = {
.get_drvinfo = team_ethtool_get_drvinfo,
.get_link = ethtool_op_get_link,
};

/***********************
* rt netlink interface
Expand Down Expand Up @@ -1790,6 +1806,7 @@ static void team_setup(struct net_device *dev)
ether_setup(dev);

dev->netdev_ops = &team_netdev_ops;
dev->ethtool_ops = &team_ethtool_ops;
dev->destructor = team_destructor;
dev->tx_queue_len = 0;
dev->flags |= IFF_MULTICAST;
Expand Down

0 comments on commit f6e9670

Please sign in to comment.