1. 10 10月, 2008 2 次提交
    • H
      gre: Use needed_headroom · c95b819a
      Herbert Xu 提交于
      Now that we have dev->needed_headroom, we can use it instead of
      having a bogus dev->hard_header_len.  This also allows us to
      include dev->hard_header_len in the MTU computation so that when
      we do have a meaningful hard_harder_len in future it is included
      automatically in figuring out the MTU.
      
      Incidentally, this fixes a bug where we ignored the needed_headroom
      field of the underlying device in calculating our own hard_header_len.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c95b819a
    • L
      phylib: two dynamic mii_bus allocation fallout fixes · ec2a5652
      Lennert Buytenhek 提交于
      1. arch/powerpc/platforms/pasemi/gpio_mdio.c also needs to be
         converted over to mdiobus_{alloc,free}().
      
      2. drivers/net/phy/fixed.c used to embed a struct mii_bus into its
         struct fixed_mdio_bus and then use container_of() to go from the
         former to the latter.  Since mii bus structures are no longer
         embedded, we need to do something like use the mii bus private
         pointer to go from mii_bus to fixed_mdio_bus instead.
      Signed-off-by: NLennert Buytenhek <buytenh@marvell.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ec2a5652
  2. 09 10月, 2008 38 次提交