1. 20 10月, 2011 2 次提交
    • A
      phylib: Modify Vitesse RGMII skew settings · fddf86fc
      Andy Fleming 提交于
      The Vitesse driver was using the RGMII_ID interface type to determine if
      skew was necessary.  However, we want to move away from using that
      interface type, as it's really a property of the board's PHY connection.
      However, some boards depend on it, so we want to support it, while
      allowing new boards to use the more flexible "fixups" approach.  To do
      this, we extract the code which adds skew into its own function, and
      call that function when RGMII_ID has been selected.
      
      Another side-effect of this change is that if your PHY has skew set
      already, it doesn't clear it.  This way, the fixup code can modify the
      register without config_init then clearing it.
      Signed-off-by: NAndy Fleming <afleming@freescale.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      fddf86fc
    • A
      net: Allow skb_recycle_check to be done in stages · 3d153a7c
      Andy Fleming 提交于
      skb_recycle_check resets the skb if it's eligible for recycling.
      However, there are times when a driver might want to optionally
      manipulate the skb data with the skb before resetting the skb,
      but after it has determined eligibility.  We do this by splitting the
      eligibility check from the skb reset, creating two inline functions to
      accomplish that task.
      Signed-off-by: NAndy Fleming <afleming@freescale.com>
      Acked-by: NDavid Daney <david.daney@cavium.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      3d153a7c
  2. 19 10月, 2011 24 次提交
  3. 18 10月, 2011 14 次提交