]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: hv: Fix missing functions for net_device_ops
authorHaiyang Zhang <haiyangz@microsoft.com>
Tue, 3 Aug 2010 19:15:31 +0000 (19:15 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 20 Sep 2010 20:17:45 +0000 (13:17 -0700)
commit0d145eb2c1a76cbf0f9ea64fb8fd0dd890386068
treebe0820b031846cadc632ec4e71e0cd6011b9fbd7
parent8c5217d732d576bcdacf7cd515165f246e6a4912
staging: hv: Fix missing functions for net_device_ops

commit b681b5886bb5d1f5b6750a0ed7c62846da7ccea4 upstream.

Fix missing functions for net_device_ops.
It's a bug when porting the drivers from 2.6.27 to 2.6.32. In 2.6.27,
the default functions for Ethernet, like eth_change_mtu(), were assigned
by ether_setup(). But in 2.6.32, these function pointers moved to
net_device_ops structure and no longer be assigned in ether_setup(). So
we need to set these functions in our driver code. It will ensure the
MTU won't be set beyond 1500. Otherwise, this can cause an error on the
server side, because the HyperV linux driver doesn't support jumbo frame
yet.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/netvsc_drv.c