search for: ether_setup

Displaying 20 results from an estimated 40 matches for "ether_setup".

2007 Dec 11
1
[PATCH resend] virtio_net: remove double ether_setup
Hello Rusty, this is a small fix for virtio_net. virtnet_probe already calls alloc_etherdev, which calls ether_setup. There is no need to do that again. Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com> --- drivers/net/virtio_net.c | 1 - 1 file changed, 1 deletion(-) Index: kvm/drivers/net/virtio_net.c =================================================================== --- kvm.orig/driver...
2007 Dec 11
1
[PATCH resend] virtio_net: remove double ether_setup
Hello Rusty, this is a small fix for virtio_net. virtnet_probe already calls alloc_etherdev, which calls ether_setup. There is no need to do that again. Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com> --- drivers/net/virtio_net.c | 1 - 1 file changed, 1 deletion(-) Index: kvm/drivers/net/virtio_net.c =================================================================== --- kvm.orig/driver...
2010 Aug 02
1
[PATCH 1/1] staging: hv: Fix missing functions for net_device_ops
From: Haiyang Zhang <haiyangz at microsoft.com> Subject: staging: hv: Fix missing functions for net_device_ops Unlike in older kernels, ether_setup() no longer sets default functions. We need to put them into net_device_ops. For example, eth_change_mtu prevents setting MTU beyond 1500. This is necessary because we don't support jumbo frame at this time. Signed-off-by: Haiyang Zhang <haiyangz at microsoft.com> Signed-off-by: Hank Jan...
2010 Aug 02
1
[PATCH 1/1] staging: hv: Fix missing functions for net_device_ops (resubmit)
From: Haiyang Zhang <haiyangz at microsoft.com> Subject: staging: hv: Fix missing functions for net_device_ops Unlike in older kernels, ether_setup() no longer sets default functions. We need to put them into net_device_ops. For example, eth_change_mtu prevents setting MTU beyond 1500. This is necessary because we don't support jumbo frame at this time. It affects kernel 2.6.32 and later, which are all versions containing Hyper-V drivers...
2010 Aug 03
0
[PATCH 1/1] staging: hv: Fix missing functions for net_device_ops (with detailed comments)
From: Haiyang Zhang <haiyangz at microsoft.com> Fix missing functions for net_device_ops. It's a bug when porting Linux IC 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 Hyper...
2010 Aug 02
1
[PATCH 1/1] staging: hv: Fix missing functions for net_device_ops
From: Haiyang Zhang <haiyangz at microsoft.com> Subject: staging: hv: Fix missing functions for net_device_ops Unlike in older kernels, ether_setup() no longer sets default functions. We need to put them into net_device_ops. For example, eth_change_mtu prevents setting MTU beyond 1500. This is necessary because we don't support jumbo frame at this time. Signed-off-by: Haiyang Zhang <haiyangz at microsoft.com> Signed-off-by: Hank Jan...
2010 Aug 02
1
[PATCH 1/1] staging: hv: Fix missing functions for net_device_ops (resubmit)
From: Haiyang Zhang <haiyangz at microsoft.com> Subject: staging: hv: Fix missing functions for net_device_ops Unlike in older kernels, ether_setup() no longer sets default functions. We need to put them into net_device_ops. For example, eth_change_mtu prevents setting MTU beyond 1500. This is necessary because we don't support jumbo frame at this time. It affects kernel 2.6.32 and later, which are all versions containing Hyper-V drivers...
2010 Aug 03
0
[PATCH 1/1] staging: hv: Fix missing functions for net_device_ops (with detailed comments)
From: Haiyang Zhang <haiyangz at microsoft.com> Fix missing functions for net_device_ops. It's a bug when porting Linux IC 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 Hyper...
2010 Aug 03
0
[PATCH 1/1] staging: hv: Fix missing functions for net_device_ops (submit again)
From: Haiyang Zhang <haiyangz at microsoft.com> Fix missing functions for net_device_ops. Unlike in older kernels, ether_setup() no longer sets default functions. We need to put them into net_device_ops. For example, eth_change_mtu prevents setting MTU beyond 1500. This is necessary because we don't support jumbo frame at this time. It affects kernel 2.6.32 and later, which are all versions containing Hyper-V drivers....
2010 Aug 03
0
[PATCH 1/1] staging: hv: Fix missing functions for net_device_ops (submit again)
From: Haiyang Zhang <haiyangz at microsoft.com> Fix missing functions for net_device_ops. Unlike in older kernels, ether_setup() no longer sets default functions. We need to put them into net_device_ops. For example, eth_change_mtu prevents setting MTU beyond 1500. This is necessary because we don't support jumbo frame at this time. It affects kernel 2.6.32 and later, which are all versions containing Hyper-V drivers....
2007 Apr 18
1
[Bridge] A question about modify bridge source
...]; }; extern struct Bridge *brg; //the bridge initiation , will be called in module_init struct Bridge *Bridge_fdb_init() { struct Bridge *br; if ((br = kmalloc(sizeof(*br),GFP_KERNEL)) == NULL) return NULL; memset(br,0,sizeof(*br)); strncpy(br->dev.name,"BRIDGE",IFNAMSIZ); ether_setup(&br->dev); Bridge_dev_setup(&br->dev); br->lock = RW_LOCK_UNLOCKED; br->hash_lock = RW_LOCK_UNLOCKED; register_netdev(&br->dev); // netif_start_queue(&br->dev); ethdev = dev_get_by_name("eth0"); ethdev->br_port = (struct net_bridge_port *)br...
2008 Feb 04
2
[PULL] virtio updates
...er Anthony Liguori (4): virtio: Fix vring_init/vring_size to take unsigned long virtio: Put the virtio under the virtualization menu virtio: PCI device virtio: Use PCI revision field to indicate virtio PCI ABI version Christian Borntraeger (4): virtnet: remove double ether_setup virtio_blk: provide getgeo virtio_blk: Dont waste major numbers virtio_blk: implement naming for vda-vdz,vdaa-vdzz,vdaaa-vdzzz Dor Laor (1): virtio_net: parametrize the napi_weight for virtio receive queue. Rusty Russell (16): virtio: Implement skb_partial_csum_set,...
2008 Feb 04
2
[PULL] virtio updates
...er Anthony Liguori (4): virtio: Fix vring_init/vring_size to take unsigned long virtio: Put the virtio under the virtualization menu virtio: PCI device virtio: Use PCI revision field to indicate virtio PCI ABI version Christian Borntraeger (4): virtnet: remove double ether_setup virtio_blk: provide getgeo virtio_blk: Dont waste major numbers virtio_blk: implement naming for vda-vdz,vdaa-vdzz,vdaaa-vdzzz Dor Laor (1): virtio_net: parametrize the napi_weight for virtio receive queue. Rusty Russell (16): virtio: Implement skb_partial_csum_set,...
2013 Oct 08
1
OT: errors compiling kernel module as a rpm package
...x76a495c1 kernel(csum_partial) = 0xe113bbbc kernel(del_timer) = 0x6307fc98 kernel(dev_base_lock) = 0xd1f91bcd kernel(dev_get_by_name) = 0x6edb8870 kernel(dev_queue_xmit) = 0x0d110dab kernel(dev_set_promiscuity) = 0x599a4d52 kernel(dst_release) = 0xec3f0011 kernel(eth_type_trans) = 0xd55704ee kernel(ether_setup) = 0x7f8bdd3a kernel(ethtool_op_get_link) = 0xd4be820d kernel(ethtool_op_get_sg) = 0x14ff9fcb kernel(ethtool_op_get_tso) = 0xcee83622 kernel(ethtool_op_get_tx_csum) = 0xecda447a kernel(ethtool_op_set_sg) = 0x89f397a9 kernel(ethtool_op_set_tso) = 0xbf4e56cf kernel(ethtool_op_set_tx_hw_csum) = 0xdcb7...
2007 May 09
3
[patch 7/9] lguest: the net driver
...evice_desc *desc = &lguest_devices[lgdev->index]; + + pr_debug("lguest_net: probing for device %i\n", lgdev->index); + + dev = alloc_etherdev(sizeof(struct lguestnet_info)); + if (!dev) + return -ENOMEM; + + SET_MODULE_OWNER(dev); + + /* Ethernet defaults with some changes */ + ether_setup(dev); + dev->set_mac_address = NULL; + + dev->dev_addr[0] = 0x02; /* set local assignment bit (IEEE802) */ + dev->dev_addr[1] = 0x00; + memcpy(&dev->dev_addr[2], &lguest_data.guestid, 2); + dev->dev_addr[4] = 0x00; + dev->dev_addr[5] = 0x00; + + dev->open = lguestnet_op...
2007 May 09
3
[patch 7/9] lguest: the net driver
...evice_desc *desc = &lguest_devices[lgdev->index]; + + pr_debug("lguest_net: probing for device %i\n", lgdev->index); + + dev = alloc_etherdev(sizeof(struct lguestnet_info)); + if (!dev) + return -ENOMEM; + + SET_MODULE_OWNER(dev); + + /* Ethernet defaults with some changes */ + ether_setup(dev); + dev->set_mac_address = NULL; + + dev->dev_addr[0] = 0x02; /* set local assignment bit (IEEE802) */ + dev->dev_addr[1] = 0x00; + memcpy(&dev->dev_addr[2], &lguest_data.guestid, 2); + dev->dev_addr[4] = 0x00; + dev->dev_addr[5] = 0x00; + + dev->open = lguestnet_op...
2012 Feb 15
2
[PATCH v2 0/2] Part 2: handle addr_assign_type for random addresses
The second part of my patch series to fix the handling of addr_assign_type for random MAC addresses. This contains the trival changes from random_ether_addr() to new eth_hw_addr_random() and code to reset the state to NET_ADDR_PERM as soon as the MAC get changed via .ndo_set_mac_address where eth_mac_addr wasn't used. Danny Kukawka (2): net: replace random_ether_addr() with
2012 Feb 15
2
[PATCH v2 0/2] Part 2: handle addr_assign_type for random addresses
The second part of my patch series to fix the handling of addr_assign_type for random MAC addresses. This contains the trival changes from random_ether_addr() to new eth_hw_addr_random() and code to reset the state to NET_ADDR_PERM as soon as the MAC get changed via .ndo_set_mac_address where eth_mac_addr wasn't used. Danny Kukawka (2): net: replace random_ether_addr() with
2012 Feb 15
2
[PATCH v2 0/2] Part 2: handle addr_assign_type for random addresses
The second part of my patch series to fix the handling of addr_assign_type for random MAC addresses. This contains the trival changes from random_ether_addr() to new eth_hw_addr_random() and code to reset the state to NET_ADDR_PERM as soon as the MAC get changed via .ndo_set_mac_address where eth_mac_addr wasn't used. Danny Kukawka (2): net: replace random_ether_addr() with
2012 Feb 15
4
[RESEND][PATCH v2 0/2] Part 2: handle addr_assign_type for random addresses
The second part of my patch series to fix the handling of addr_assign_type for random MAC addresses. This contains the trival changes from random_ether_addr() to new eth_hw_addr_random() and code to reset the state to NET_ADDR_PERM as soon as the MAC get changed via .ndo_set_mac_address where eth_mac_addr wasn't used. Resend due to send with too long recipients list. Sorry! Thanks to Joe