aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/macvlan.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-07-28 00:01:35 -0400
committerDavid S. Miller <davem@davemloft.net>2010-07-28 00:01:35 -0400
commitbb7e95c8fd859922c6cf3ebbb3a8546007df1748 (patch)
tree58b54c6306ba168b76f25cc6dc9a2d1d2eb830a7 /drivers/net/macvlan.c
parentb8bc0421ab7f83712a0a8ef7eb05fa73ec53c027 (diff)
parent5447080cfa3c77154498dfbf225367ac85b4c2b5 (diff)
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts: drivers/net/bnx2x_main.c Merge bnx2x bug fixes in by hand... :-/ Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/macvlan.c')
-rw-r--r--drivers/net/macvlan.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c
index 1b28aaec0a5a..6e9da96a87b2 100644
--- a/drivers/net/macvlan.c
+++ b/drivers/net/macvlan.c
@@ -515,7 +515,7 @@ static const struct net_device_ops macvlan_netdev_ops = {
515 .ndo_validate_addr = eth_validate_addr, 515 .ndo_validate_addr = eth_validate_addr,
516}; 516};
517 517
518static void macvlan_setup(struct net_device *dev) 518void macvlan_common_setup(struct net_device *dev)
519{ 519{
520 ether_setup(dev); 520 ether_setup(dev);
521 521
@@ -524,6 +524,12 @@ static void macvlan_setup(struct net_device *dev)
524 dev->destructor = free_netdev; 524 dev->destructor = free_netdev;
525 dev->header_ops = &macvlan_hard_header_ops, 525 dev->header_ops = &macvlan_hard_header_ops,
526 dev->ethtool_ops = &macvlan_ethtool_ops; 526 dev->ethtool_ops = &macvlan_ethtool_ops;
527}
528EXPORT_SYMBOL_GPL(macvlan_common_setup);
529
530static void macvlan_setup(struct net_device *dev)
531{
532 macvlan_common_setup(dev);
527 dev->tx_queue_len = 0; 533 dev->tx_queue_len = 0;
528} 534}
529 535
@@ -735,7 +741,6 @@ int macvlan_link_register(struct rtnl_link_ops *ops)
735 /* common fields */ 741 /* common fields */
736 ops->priv_size = sizeof(struct macvlan_dev); 742 ops->priv_size = sizeof(struct macvlan_dev);
737 ops->get_tx_queues = macvlan_get_tx_queues; 743 ops->get_tx_queues = macvlan_get_tx_queues;
738 ops->setup = macvlan_setup;
739 ops->validate = macvlan_validate; 744 ops->validate = macvlan_validate;
740 ops->maxtype = IFLA_MACVLAN_MAX; 745 ops->maxtype = IFLA_MACVLAN_MAX;
741 ops->policy = macvlan_policy; 746 ops->policy = macvlan_policy;
@@ -749,6 +754,7 @@ EXPORT_SYMBOL_GPL(macvlan_link_register);
749 754
750static struct rtnl_link_ops macvlan_link_ops = { 755static struct rtnl_link_ops macvlan_link_ops = {
751 .kind = "macvlan", 756 .kind = "macvlan",
757 .setup = macvlan_setup,
752 .newlink = macvlan_newlink, 758 .newlink = macvlan_newlink,
753 .dellink = macvlan_dellink, 759 .dellink = macvlan_dellink,
754}; 760};