linux/drivers/net/ethernet
John Greene cb64edb6b8 8139cp: properly support change of MTU values [v2]
The 8139cp driver has a change_mtu function that has not been
enabled since the dawn of the git repository. However, the
generic eth_change_mtu is not used in its place, so that
invalid MTU values can be set on the interface.

Original patch salvages the broken code for the single case of
setting the MTU while the interface is down, which is safe
and also includes the range check.  Now enhanced to support up
or down interface.

v2: fix case where rxbufsz isn't changed in the up state case

Original patch from
http://lkml.indiana.edu/hypermail/linux/kernel/1202.2/00770.html

Testing: has been test on virtual 8139cp setup without issue,
have no access real hardware 8139cp, need testing help.

Signed-off-by: "John Greene" <jogreene@redhat.com>
CC: "David S. Miller" <davem@davemloft.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-12-03 13:51:16 -05:00
..
3com treewide: fix comment/printk/variable typos 2012-09-01 10:33:05 -07:00
8390 Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2012-11-25 12:49:17 -05:00
adaptec sections: fix section conflicts in drivers/net 2012-10-06 03:04:42 +09:00
adi ptp: fixup Kconfig for two PHC drivers. 2012-11-03 15:37:35 -04:00
aeroflex
alteon
amd drivers/net/ethernet/amd/au1000_eth.c: fix error return code 2012-10-07 14:37:11 -04:00
apple
atheros sections: fix section conflicts in drivers/net 2012-10-06 03:04:42 +09:00
broadcom bnx2x: recognize fan failure 2012-12-03 13:46:43 -05:00
brocade bna: remove useless calls to memset(). 2012-12-02 20:32:56 -05:00
cadence net/macb: GEM DMA configuration register update 2012-11-23 14:29:51 -05:00
calxeda net: calxedaxgmac: ip align receive buffers 2012-11-07 03:51:14 -05:00
chelsio cxgb3: Restore dependency on INET 2012-11-28 17:40:59 -05:00
cirrus
cisco net: Remove bogus dependencies on INET 2012-11-19 19:13:59 -05:00
davicom
dec ewrk3: remove outdated comment 2012-11-28 11:35:08 -05:00
dlink sundance: Enable WoL support 2012-12-03 13:32:15 -05:00
emulex be2net: fix INTx ISR for interrupt behaviour on BE2 2012-11-28 11:35:08 -05:00
faraday
freescale Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2012-11-10 18:32:51 -05:00
fujitsu
hp
i825xx net/ethernet: remove useless is_valid_ether_addr from drivers ndo_open 2012-11-19 19:01:18 -05:00
ibm ehea: Remove remnants of LRO support 2012-11-19 19:13:59 -05:00
icplus
intel ixgbe: Do not parse past IP header on fragments beyond the first 2012-12-01 03:44:10 -08:00
marvell Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2012-11-10 18:32:51 -05:00
mellanox net/mlx4_en: Set number of rx/tx channels using ethtool 2012-12-02 20:22:59 -05:00
micrel net/ethernet: remove useless is_valid_ether_addr from drivers ndo_open 2012-11-19 19:01:18 -05:00
microchip
myricom myri10ge: fix incorrect use of ntohs() 2012-12-01 11:36:37 -05:00
natsemi drivers/net/ethernet/natsemi/xtsonic.c: fix error return code 2012-10-07 14:37:12 -04:00
neterion net: Remove bogus dependencies on INET 2012-11-19 19:13:59 -05:00
nuvoton
nvidia
nxp net/ethernet: remove useless is_valid_ether_addr from drivers ndo_open 2012-11-19 19:01:18 -05:00
octeon Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus 2012-10-09 16:08:04 +09:00
oki-semi pch_gbe, ptp_pch: Fix the dependency direction between these drivers 2012-11-17 22:11:45 -05:00
packetengines
pasemi netdev: pasemi: fix return value check in pasemi_mac_phy_init() 2012-09-27 13:20:50 -04:00
qlogic qlcnic: remove duplicated include from qlcnic_sysfs.c 2012-12-01 11:36:37 -05:00
racal
rdc
realtek 8139cp: properly support change of MTU values [v2] 2012-12-03 13:51:16 -05:00
renesas net: sh_eth: Fix a typo - replace regist with register. 2012-11-03 15:37:35 -04:00
seeq net/ethernet: remove useless is_valid_ether_addr from drivers ndo_open 2012-11-19 19:01:18 -05:00
sfc sfc: Make module parameters really boolean 2012-12-01 02:37:37 +00:00
sgi
silan
sis sis900: fix sis900_set_mode call parameters. 2012-11-18 18:28:15 -05:00
smsc net/ethernet: remove useless is_valid_ether_addr from drivers ndo_open 2012-11-19 19:01:18 -05:00
stmicro stmmac: remove two repeated macros 2012-12-03 13:35:36 -05:00
sun drivers/net/ethernet/sun/sungem.c: fix error return code 2012-10-07 14:37:12 -04:00
tehuti
ti net: ethernet: cpsw: fix build warnings for CPSW when CPTS not selected 2012-11-28 17:51:16 -05:00
tile tilegx: request_irq with a non-null device name 2012-11-16 01:40:41 -05:00
toshiba wireless: gelic: make use of WLAN_EID_VENDOR_SPECIFIC 2012-10-18 09:01:55 +02:00
tundra
via
wiznet net/ethernet: remove useless is_valid_ether_addr from drivers ndo_open 2012-11-19 19:01:18 -05:00
xilinx net: fix build failure in xilinx 2012-11-20 15:51:55 -05:00
xircom
xscale ixp4xx_eth: avoid calling dma_pool_create() with NULL dev 2012-11-20 15:12:44 -05:00
dnet.c net/ethernet: remove useless is_valid_ether_addr from drivers ndo_open 2012-11-19 19:01:18 -05:00
dnet.h
ethoc.c
fealnx.c sections: fix section conflicts in drivers/net 2012-10-06 03:04:42 +09:00
jme.c drivers/net: fix tasklet misuse issue 2012-11-14 21:50:10 -05:00
jme.h
Kconfig net: mipsnet: Remove the MIPSsim Ethernet driver. 2012-09-24 16:47:23 -04:00
korina.c
lantiq_etop.c
Makefile net: mipsnet: Remove the MIPSsim Ethernet driver. 2012-09-24 16:47:23 -04:00
netx-eth.c ARM: netx: move platform_data definitions 2012-09-14 11:17:36 +02:00
s6gmac.c