# This is a BitKeeper generated patch for the following project: # Project Name: Linux kernel tree # This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas: # ChangeSet 1.1257 -> 1.1259 # drivers/net/e100/e100_main.c 1.73 -> 1.75 # # The following is the BitKeeper ChangeSet Log # -------------------------------------------- # 03/05/29 jgarzik@redhat.com 1.1229.17.12 # Cset exclude: shemminger@osdl.org|ChangeSet|20030529205634|46794 # # The needed fix winds up breaking SG, checksumming, and other stuff # in the process. # -------------------------------------------- # 03/05/29 jgarzik@redhat.com 1.1258 # Merge redhat.com:/garz/repo/linus-2.5 # into redhat.com:/garz/repo/net-drivers-2.5 # -------------------------------------------- # 03/05/29 scott.feldman@intel.com 1.1259 # [netdrvr e100] move register_netdev below netdev struct init # # (i.e. the better fix) # -------------------------------------------- # diff -Nru a/drivers/net/e100/e100_main.c b/drivers/net/e100/e100_main.c --- a/drivers/net/e100/e100_main.c Thu May 29 21:10:21 2003 +++ b/drivers/net/e100/e100_main.c Thu May 29 21:10:21 2003 @@ -614,26 +614,6 @@ goto err_dealloc; } - dev->vlan_rx_register = e100_vlan_rx_register; - dev->vlan_rx_add_vid = e100_vlan_rx_add_vid; - dev->vlan_rx_kill_vid = e100_vlan_rx_kill_vid; - dev->irq = pcid->irq; - dev->open = &e100_open; - dev->hard_start_xmit = &e100_xmit_frame; - dev->stop = &e100_close; - dev->change_mtu = &e100_change_mtu; - dev->get_stats = &e100_get_stats; - dev->set_multicast_list = &e100_set_multi; - dev->set_mac_address = &e100_set_mac; - dev->do_ioctl = &e100_ioctl; - if (bdp->flags & USE_IPCB) - dev->features = NETIF_F_SG | NETIF_F_HW_CSUM | - NETIF_F_HW_VLAN_TX | NETIF_F_HW_VLAN_RX; - - if ((rc = register_netdev(dev)) != 0) { - goto err_pci; - } - if (((bdp->pdev->device > 0x1030) && (bdp->pdev->device < 0x103F)) || ((bdp->pdev->device >= 0x1050) @@ -657,6 +637,28 @@ } else { bdp->rfd_size = 16; } + + dev->vlan_rx_register = e100_vlan_rx_register; + dev->vlan_rx_add_vid = e100_vlan_rx_add_vid; + dev->vlan_rx_kill_vid = e100_vlan_rx_kill_vid; + dev->irq = pcid->irq; + dev->open = &e100_open; + dev->hard_start_xmit = &e100_xmit_frame; + dev->stop = &e100_close; + dev->change_mtu = &e100_change_mtu; + dev->get_stats = &e100_get_stats; + dev->set_multicast_list = &e100_set_multi; + dev->set_mac_address = &e100_set_mac; + dev->do_ioctl = &e100_ioctl; + + if (bdp->flags & USE_IPCB) + dev->features = NETIF_F_SG | NETIF_F_HW_CSUM | + NETIF_F_HW_VLAN_TX | NETIF_F_HW_VLAN_RX; + + if ((rc = register_netdev(dev)) != 0) { + goto err_pci; + } + e100_check_options(e100nics, bdp); if (!e100_init(bdp)) {