Skip to content
Snippets Groups Projects
  1. Apr 29, 2011
  2. Apr 11, 2011
  3. Apr 06, 2011
  4. Mar 31, 2011
  5. Mar 30, 2011
    • Javier Martinez Canillas's avatar
      drivers/net: Remove IRQF_SAMPLE_RANDOM flag from network drivers · ab392d2d
      Javier Martinez Canillas authored
      
      The IRQF_SAMPLE_RANDOM flag is marked as deprecated and will be removed.
      
      Every input point to the kernel's entropy pool have to better document the
      type of entropy source it is.
      
      drivers/char/random.c now implements a set of interfaces that can be used for
      devices to collect enviromental noise. IRQF_SAMPLE_RANDOM will be replaced
      with these add_*_randomness exported functions.
      
      Network drivers are not a good source of entropy. They use as a source of
      entropy essentially a remote host. Which means that the source of entropy can
      be potentially controlled by an attacker. Also, with heavy workloads the
      entropy decreases due to less hardware interrupts happening thanks to irq
      mitigation and NAPI.
      
      If a system relies in its network interface as a entropy source it has a false
      sense of security. Systems that don't have devices whose drivers are good
      sources of entropy, should either use a hardware random number generator or
      feed the kernel's entropy pool from userspace using other sources of entropy
      such as EGD, video_entropyd, timer_entropyd and audio-entropyd.
      
      Signed-off-by: default avatarJavier Martinez Canillas <martinez.javier@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      ab392d2d
  6. Mar 28, 2011
    • Stanislaw Gruszka's avatar
      net: fix ethtool->set_flags not intended -EINVAL return value · 673e63c6
      Stanislaw Gruszka authored
      
      After commit d5dbda23 "ethtool: Add
      support for vlan accleration.", drivers that have NETIF_F_HW_VLAN_TX,
      and/or NETIF_F_HW_VLAN_RX feature, but do not allow enable/disable vlan
      acceleration via ethtool set_flags, always return -EINVAL from that
      function. Fix by returning -EINVAL only if requested features do not
      match current settings and can not be changed by driver.
      
      Change any driver that define ethtool->set_flags to use
      ethtool_invalid_flags() to avoid similar problems in the future
      (also on drivers that do not have the problem).
      
      Tested with modified (to reproduce this bug) myri10ge driver.
      
      Cc: stable@kernel.org # 2.6.37+
      Signed-off-by: default avatarStanislaw Gruszka <sgruszka@redhat.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      673e63c6
  7. Mar 15, 2011
  8. Mar 14, 2011
  9. Jan 03, 2011
  10. Dec 31, 2010
  11. Dec 21, 2010
  12. Nov 28, 2010
  13. Nov 27, 2010
  14. Nov 03, 2010
    • Amerigo Wang's avatar
      netxen: remove unused firmware exports · 1c260e49
      Amerigo Wang authored
      
      Quote from Amit Salecha:
      
      "Actually I was not updated, NX_UNIFIED_ROMIMAGE_NAME (phanfw.bin) is already
      submitted and its present in linux-firmware.git.
      
      I will get back to you on NX_P2_MN_ROMIMAGE_NAME, NX_P3_CT_ROMIMAGE_NAME and
      NX_P3_MN_ROMIMAGE_NAME. Whether this will be submitted ?"
      
      We have to remove these, otherwise we will get wrong info from modinfo.
      
      Signed-off-by: default avatarWANG Cong <amwang@redhat.com>
      Cc: Amit Kumar Salecha <amit.salecha@qlogic.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Dhananjay Phadke <dhananjay.phadke@qlogic.com>
      Cc: Narender Kumar <narender.kumar@qlogic.com>
      Acked-by: default avatarAmit Kumar Salecha <amit.salecha@qlogic.com&gt;-->
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      1c260e49
  15. Oct 30, 2010
  16. Oct 28, 2010
  17. Oct 21, 2010
  18. Oct 18, 2010
  19. Sep 26, 2010
  20. Sep 21, 2010
  21. Aug 23, 2010
  22. Aug 19, 2010
  23. Aug 08, 2010
  24. Jul 14, 2010
  25. Jun 30, 2010
  26. Jun 29, 2010
  27. Jun 15, 2010
  28. May 21, 2010
  29. May 14, 2010
    • Joe Perches's avatar
      drivers/net: Remove unnecessary returns from void function()s · a4b77097
      Joe Perches authored
      
      This patch removes from drivers/net/ all the unnecessary
      return; statements that precede the last closing brace of
      void functions.
      
      It does not remove the returns that are immediately
      preceded by a label as gcc doesn't like that.
      
      It also does not remove null void functions with return.
      
      Done via:
      $ grep -rP --include=*.[ch] -l "return;\n}" net/ | \
        xargs perl -i -e 'local $/ ; while (<>) { s/\n[ \t\n]+return;\n}/\n}/g; print; }'
      
      with some cleanups by hand.
      
      Compile tested x86 allmodconfig only.
      
      Signed-off-by: default avatarJoe Perches <joe@perches.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a4b77097
  30. May 13, 2010
Loading