OpenCloudOS-Kernel/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 ethernet: Remove casts to same type 2012-06-06 09:31:33 -07:00
alteon Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
amd drivers/net/ethernet/amd/au1000_eth.c: fix error return code 2012-10-07 14:37:11 -04:00
apple ethernet: Remove casts to same type 2012-06-06 09:31:33 -07:00
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 cs89x0 : packet reception not working 2012-08-31 15:48:56 -04:00
cisco net: Remove bogus dependencies on INET 2012-11-19 19:13:59 -05:00
davicom dm9000: some coldfire boards need this 2012-05-14 18:40:16 -04:00
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 net: ftgmac100/ftmac100: dont pull too much data 2012-07-18 09:40:53 -07:00
freescale Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2012-11-10 18:32:51 -05:00
fujitsu drivers/net: delete all code/drivers depending on CONFIG_MCA 2012-05-17 16:37:41 -04:00
hp ethernet: Remove casts to same type 2012-06-06 09:31:33 -07:00
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 forcedeth: prevent TX timeouts after reboot 2012-08-30 13:04:57 -04:00
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 yellowfin: stop using net_device.{base_addr, irq}. 2012-04-07 11:45:26 +02:00
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 r6040: use module_pci_driver macro 2012-07-09 14:42:30 -07:00
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 Merge tty-next into 3.6-rc1 2012-08-06 09:48:31 -07:00
silan sc92031: stop using net_device.{base_addr, irq} 2012-04-07 11:45:27 +02:00
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 drivers/net/ethernet: Fix (nearly-)kernel-doc comments for various functions 2012-07-10 23:13:46 -07:00
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 drivers/net/ethernet/tundra/tsi108_eth.c: delete double assignment 2012-08-30 13:08:37 -04:00
via ethernet: Remove casts to same type 2012-06-06 09:31:33 -07:00
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 Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
xscale ixp4xx_eth: avoid calling dma_pool_create() with NULL dev 2012-11-20 15:12:44 -05:00
Kconfig net: mipsnet: Remove the MIPSsim Ethernet driver. 2012-09-24 16:47:23 -04:00
Makefile net: mipsnet: Remove the MIPSsim Ethernet driver. 2012-09-24 16:47:23 -04: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 ethernet: Use eth_random_addr 2012-07-16 22:38:27 -07:00
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
korina.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
lantiq_etop.c ethernet: Use eth_random_addr 2012-07-16 22:38:27 -07:00
netx-eth.c ARM: netx: move platform_data definitions 2012-09-14 11:17:36 +02:00
s6gmac.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2012-05-22 19:22:50 -07:00