1. 09 Oct, 2008 2 commits
    • Trent Piepho's avatar
      gianfar: Create net device with carrier down · d3eab82b
      Trent Piepho authored
      The device's carrier status is controlled via the functions
      netif_carrier_on() and netif_carrier_off().  These set or clear a bit
      indicating the carrier (aka lower level link) is down, and if the state
      changed, they fire off a routing netlink event.
      
      Add a call to netif_carrier_off() before register_netdev() so that the
      newly created device will be set to carrier down.  Then when the carrier
      comes up for the first time, a netlink event will be generated, as the
      carrier changed from down to up.  Otherwise the initial carrier up will
      appear to be changing the status from up to up, and so no event is
      generated since that's not a change.
      Signed-off-by: default avatarTrent Piepho <tpiepho@freescale.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      d3eab82b
    • Lennert Buytenhek's avatar
      mv643xx_eth: include linux/ip.h to fix build · c3efab8e
      Lennert Buytenhek authored
      mv643xx_eth uses ip_hdr() (defined in linux/ip.h), but relied on
      another header file to include the needed header file indirectly.
      In latest net-next this indirect include chain is gone, so the
      driver fails to build.  Include linux/ip.h explicitly to fix this.
      Signed-off-by: default avatarLennert Buytenhek <buytenh@marvell.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      c3efab8e
  2. 08 Oct, 2008 38 commits