22 Jul, 2011
40 commits
-
Prior to this change, most PHY configuration parameters were passed
into the STMMAC device as a separate PHY device. As well as being
unusual, this made it difficult to make changes to the MAC/PHY
relationship.This patch moves all the PHY parameters into the MAC configuration
structure, mainly as a separate structure. This allows us to completely
ignore the MDIO bus attached to a stmmac if desired, and not create
the PHY bus. It also allows the stmmac driver to use a different PHY
from the one it is connected to, for example a fixed PHY or bit banging
PHY.Also derive the stmmac/PHY connection type (MII/RMII etc) from the
mode can be passed into _configure_ethernet.
STLinux kernel at git://git.stlinux.com/stm/linux-sh4-2.6.32.y.git
provides several examples how to use this new infrastructure (that
actually is easier to maintain and clearer).Signed-off-by: Stuart Menefy
Signed-off-by: Giuseppe Cavallaro
Signed-off-by: David S. Miller -
The patch removes the following serie of warnings
when the driver is compiled as built-in:drivers/net/stmmac/stmmac_main.c: In function stmmac_cmdline_opt:
drivers/net/stmmac/stmmac_main.c:1855:12: warning: ignoring return
value of kstrtoul, declared with attribute warn_unused_result
[snip]Signed-off-by: Giuseppe Cavallaro
Signed-off-by: David S. Miller -
Signed-off-by: Giuseppe Cavallaro
Signed-off-by: David S. Miller -
Some drivers (ab)use the ethtool_ops::get_regs operation to expose
only a hardware revision ID. Commit
a77f5db361ed9953b5b749353ea2c7fed2bf8d93 ('ethtool: Allocate register
dump buffer with vmalloc()') had the side-effect of breaking these, as
vmalloc() returns a null pointer for size=0 whereas kmalloc() did not.For backward-compatibility, allow zero-length dumps again.
Reported-by: Kalle Valo
Signed-off-by: Ben Hutchings
Cc: stable@kernel.org [2.6.37+]
Signed-off-by: David S. Miller -
There are two problems:
1) "n" was allocated with alloc_skb() so we should free it with
kfree_skb() instead of regular kfree().
2) We return the freed pointer instead of NULL.Signed-off-by: Dan Carpenter
Reviewed-by: Eric Dumazet
Signed-off-by: David S. Miller -
there are no users outside vlan code
Signed-off-by: Jiri Pirko
Signed-off-by: David S. Miller -
has no users so remove it
Signed-off-by: Jiri Pirko
Signed-off-by: David S. Miller -
ndo_vlan_rx_register is no longer in use in any driver so remove it.
Signed-off-by: Jiri Pirko
Signed-off-by: David S. Miller -
Now when all devices are cleaned up, bond can be cleaned up as well
- remove bond->vlgrp
- remove bond_vlan_rx_register
- substitute necessary occurences of vlan_group_get_deviceSigned-off-by: Jiri Pirko
Signed-off-by: David S. Miller -
Signed-off-by: Jiri Pirko
Signed-off-by: David S. Miller -
Signed-off-by: Jiri Pirko
Signed-off-by: David S. Miller -
- kill priv->vlgrp and stmmac_vlan_rx_register (used for nothing :))
Signed-off-by: Jiri Pirko
Signed-off-by: David S. Miller -
Signed-off-by: Jiri Pirko
Signed-off-by: David S. Miller -
- unify vlan and nonvlan rx path
- kill card->vlangrp and qeth_l3_vlan_rx_registerSigned-off-by: Jiri Pirko
Signed-off-by: David S. Miller -
- unify vlan and nonvlan rx path
- kill vdev->vlgrp and vxge_vlan_rx_registerSigned-off-by: Jiri Pirko
Signed-off-by: David S. Miller -
- unify vlan and nonvlan rx path
- kill adapter->vlgrp and igb_vlan_rx_register
- allow to turn on/off rx/tx vlan accel via ethtool (set_features)Signed-off-by: Jiri Pirko
Signed-off-by: David S. Miller -
- unify vlan and nonvlan rx path
- kill np->vlangrp and nv_vlan_rx_register
- allow to turn on/off rx vlan accel via ethtool (set_features)Signed-off-by: Jiri Pirko
Signed-off-by: David S. Miller -
- unify vlan and nonvlan rx path
- kill adapter->vlgrp and e1000_vlan_rx_register
- allow to turn on/off rx/tx vlan accel via ethtool (set_features)Signed-off-by: Jiri Pirko
Signed-off-by: David S. Miller -
Signed-off-by: Jiri Pirko
Signed-off-by: David S. Miller -
- unify vlan and nonvlan rx path
- kill pi->vlan_grp and vlan_rx_register
- allow to turn on/off rx/tx vlan accel via ethtool (set_features)Signed-off-by: Jiri Pirko
Signed-off-by: David S. Miller -
- unify vlan and nonvlan rx path
- kill adapter->vlgrp and atl2_vlan_rx_register
- allow to turn on/off rx/tx vlan accel via ethtool (set_features)Signed-off-by: Jiri Pirko
Signed-off-by: David S. Miller -
- unify vlan and nonvlan rx path
- kill adapter->vlgrp and atlx_vlan_rx_register
- allow to turn on/off rx/tx vlan accel via ethtool (set_features)Signed-off-by: Jiri Pirko
Signed-off-by: David S. Miller -
- unify vlan and nonvlan rx path
- kill dev->vlgrp and ns83820_vlan_rx_registerSigned-off-by: Jiri Pirko
Signed-off-by: David S. Miller -
- unify vlan and nonvlan rx path
- kill np->vlgrp and netdev_vlan_rx_registerSigned-off-by: Jiri Pirko
Signed-off-by: David S. Miller -
- unify vlan and nonvlan rx path
- kill vptr->vlgrp and velocity_vlan_rx_registerSigned-off-by: Jiri Pirko
Signed-off-by: David S. Miller -
- unify vlan and nonvlan rx path
- kill ap->vlgrp and ace_vlan_rx_register
- enable vlan hw accel always (kill vlan ifdefs)Signed-off-by: Jiri Pirko
Signed-off-by: David S. Miller -
- unify vlan and nonvlan rx path
- kill adapter->vlgrp and ixgbevf_vlan_rx_registerSigned-off-by: Jiri Pirko
Signed-off-by: David S. Miller -
Signed-off-by: Jiri Pirko
Signed-off-by: David S. Miller -
- unify vlan and nonvlan rx path
- kill priv->vlgrp and bdx_vlan_rx_registerSigned-off-by: Jiri Pirko
Signed-off-by: David S. Miller -
Signed-off-by: Jiri Pirko
Signed-off-by: David S. Miller -
- unify vlan and nonvlan rx path
- kill sp->vlgrp and s2io_vlan_rx_register and s2io_vlan_rx_kill_vid
(which does nothing and is never called :))Signed-off-by: Jiri Pirko
Signed-off-by: David S. Miller -
- unify vlan and nonvlan path
- kill qdev->vlgrp and qlge_vlan_rx_register
- allow to turn on/off rx/tx vlan accel via ethtool (set_features)Signed-off-by: Jiri Pirko
Signed-off-by: David S. Miller -
- unify vlan and nonvlan path
- kill priv->vlgrp and mlx4_en_vlan_rx_registerSigned-off-by: Jiri Pirko
Signed-off-by: David S. Miller -
- unify vlan and nonvlan rx path
- kill jme->vlgrp and jme_vlan_rx_registerSigned-off-by: Jiri Pirko
Signed-off-by: David S. Miller -
- unify vlan and nonvlan rx path
- kill adapter->vlgrp and igbvf_vlan_rx_registerSigned-off-by: Jiri Pirko
Signed-off-by: David S. Miller -
- unify vlan and nonvlan rx path
- kill priv->vlgrp and gfar_vlan_rx_register
- allow to turn on/off rx/tx vlan accel via ethtoolSigned-off-by: Jiri Pirko
Signed-off-by: David S. Miller -
- unify vlan and nonvlan rx path
- kill enic->vlan_group and enic_vlan_rx_registerSigned-off-by: Jiri Pirko
Signed-off-by: David S. Miller -
Signed-off-by: Jiri Pirko
Signed-off-by: David S. Miller -
- unify vlan and nonvlan rx path
- kill pi->vlan_grp and cxgb4vf_vlan_rx_register
- allow to turn on/off rx/tx vlan accel via ethtool (set_features)Signed-off-by: Jiri Pirko
Signed-off-by: David S. Miller -
- unify vlan and nonvlan rx path
- kill adapter->vlan_grp and t1_vlan_rx_register
- allow to turn on/off rx/tx vlan accel via ethtool (set_features)Signed-off-by: Jiri Pirko
Signed-off-by: David S. Miller