diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-12-28 15:49:40 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-12-28 15:49:40 -0500 |
commit | 0191b625ca5a46206d2fb862bb08f36f2fcb3b31 (patch) | |
tree | 454d1842b1833d976da62abcbd5c47521ebe9bd7 /net/bridge/br_device.c | |
parent | 54a696bd07c14d3b1192d03ce7269bc59b45209a (diff) | |
parent | eb56092fc168bf5af199d47af50c0d84a96db898 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6: (1429 commits)
net: Allow dependancies of FDDI & Tokenring to be modular.
igb: Fix build warning when DCA is disabled.
net: Fix warning fallout from recent NAPI interface changes.
gro: Fix potential use after free
sfc: If AN is enabled, always read speed/duplex from the AN advertising bits
sfc: When disabling the NIC, close the device rather than unregistering it
sfc: SFT9001: Add cable diagnostics
sfc: Add support for multiple PHY self-tests
sfc: Merge top-level functions for self-tests
sfc: Clean up PHY mode management in loopback self-test
sfc: Fix unreliable link detection in some loopback modes
sfc: Generate unique names for per-NIC workqueues
802.3ad: use standard ethhdr instead of ad_header
802.3ad: generalize out mac address initializer
802.3ad: initialize ports LACPDU from const initializer
802.3ad: remove typedef around ad_system
802.3ad: turn ports is_individual into a bool
802.3ad: turn ports is_enabled into a bool
802.3ad: make ntt bool
ixgbe: Fix set_ringparam in ixgbe to use the same memory pools.
...
Fixed trivial IPv4/6 address printing conflicts in fs/cifs/connect.c due
to the conversion to %pI (in this networking merge) and the addition of
doing IPv6 addresses (from the earlier merge of CIFS).
Diffstat (limited to 'net/bridge/br_device.c')
-rw-r--r-- | net/bridge/br_device.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/net/bridge/br_device.c b/net/bridge/br_device.c index 6c023f0f8252..18538d7460d7 100644 --- a/net/bridge/br_device.c +++ b/net/bridge/br_device.c | |||
@@ -147,7 +147,7 @@ static int br_set_tx_csum(struct net_device *dev, u32 data) | |||
147 | return 0; | 147 | return 0; |
148 | } | 148 | } |
149 | 149 | ||
150 | static struct ethtool_ops br_ethtool_ops = { | 150 | static const struct ethtool_ops br_ethtool_ops = { |
151 | .get_drvinfo = br_getinfo, | 151 | .get_drvinfo = br_getinfo, |
152 | .get_link = ethtool_op_get_link, | 152 | .get_link = ethtool_op_get_link, |
153 | .get_tx_csum = ethtool_op_get_tx_csum, | 153 | .get_tx_csum = ethtool_op_get_tx_csum, |
@@ -160,21 +160,25 @@ static struct ethtool_ops br_ethtool_ops = { | |||
160 | .get_flags = ethtool_op_get_flags, | 160 | .get_flags = ethtool_op_get_flags, |
161 | }; | 161 | }; |
162 | 162 | ||
163 | static const struct net_device_ops br_netdev_ops = { | ||
164 | .ndo_open = br_dev_open, | ||
165 | .ndo_stop = br_dev_stop, | ||
166 | .ndo_start_xmit = br_dev_xmit, | ||
167 | .ndo_set_mac_address = br_set_mac_address, | ||
168 | .ndo_set_multicast_list = br_dev_set_multicast_list, | ||
169 | .ndo_change_mtu = br_change_mtu, | ||
170 | .ndo_do_ioctl = br_dev_ioctl, | ||
171 | }; | ||
172 | |||
163 | void br_dev_setup(struct net_device *dev) | 173 | void br_dev_setup(struct net_device *dev) |
164 | { | 174 | { |
165 | random_ether_addr(dev->dev_addr); | 175 | random_ether_addr(dev->dev_addr); |
166 | ether_setup(dev); | 176 | ether_setup(dev); |
167 | 177 | ||
168 | dev->do_ioctl = br_dev_ioctl; | 178 | dev->netdev_ops = &br_netdev_ops; |
169 | dev->hard_start_xmit = br_dev_xmit; | ||
170 | dev->open = br_dev_open; | ||
171 | dev->set_multicast_list = br_dev_set_multicast_list; | ||
172 | dev->change_mtu = br_change_mtu; | ||
173 | dev->destructor = free_netdev; | 179 | dev->destructor = free_netdev; |
174 | SET_ETHTOOL_OPS(dev, &br_ethtool_ops); | 180 | SET_ETHTOOL_OPS(dev, &br_ethtool_ops); |
175 | dev->stop = br_dev_stop; | ||
176 | dev->tx_queue_len = 0; | 181 | dev->tx_queue_len = 0; |
177 | dev->set_mac_address = br_set_mac_address; | ||
178 | dev->priv_flags = IFF_EBRIDGE; | 182 | dev->priv_flags = IFF_EBRIDGE; |
179 | 183 | ||
180 | dev->features = NETIF_F_SG | NETIF_F_FRAGLIST | NETIF_F_HIGHDMA | | 184 | dev->features = NETIF_F_SG | NETIF_F_FRAGLIST | NETIF_F_HIGHDMA | |