1. 05 1月, 2017 1 次提交
  2. 30 12月, 2016 1 次提交
  3. 03 12月, 2016 1 次提交
  4. 13 10月, 2016 1 次提交
    • J
      net: deprecate eth_change_mtu, remove usage · a52ad514
      Jarod Wilson 提交于
      With centralized MTU checking, there's nothing productive done by
      eth_change_mtu that isn't already done in dev_set_mtu, so mark it as
      deprecated and remove all usage of it in the kernel. All callers have been
      audited for calls to alloc_etherdev* or ether_setup directly, which means
      they all have a valid dev->min_mtu and dev->max_mtu. Now eth_change_mtu
      prints out a netdev_warn about being deprecated, for the benefit of
      out-of-tree drivers that might be utilizing it.
      
      Of note, dvb_net.c actually had dev->mtu = 4096, while using
      eth_change_mtu, meaning that if you ever tried changing it's mtu, you
      couldn't set it above 1500 anymore. It's now getting dev->max_mtu also set
      to 4096 to remedy that.
      
      v2: fix up lantiq_etop, missed breakage due to drive not compiling on x86
      
      CC: netdev@vger.kernel.org
      Signed-off-by: NJarod Wilson <jarod@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a52ad514
  5. 28 9月, 2016 1 次提交
  6. 11 9月, 2016 1 次提交
  7. 11 8月, 2016 2 次提交
  8. 02 8月, 2016 1 次提交
  9. 20 7月, 2016 1 次提交
  10. 09 5月, 2016 2 次提交
  11. 27 4月, 2016 3 次提交
  12. 10 4月, 2016 1 次提交
  13. 17 3月, 2016 1 次提交
  14. 15 3月, 2016 1 次提交
  15. 11 3月, 2016 2 次提交
  16. 04 3月, 2016 1 次提交
  17. 18 2月, 2016 1 次提交
  18. 10 2月, 2016 1 次提交
  19. 12 1月, 2016 1 次提交
  20. 08 1月, 2016 3 次提交
  21. 05 1月, 2016 2 次提交
  22. 23 12月, 2015 1 次提交
  23. 15 12月, 2015 3 次提交
  24. 09 12月, 2015 3 次提交
  25. 06 12月, 2015 2 次提交
    • S
      sh_eth: read MAC address registers only once · 37742f02
      Sergei Shtylyov 提交于
      The code reading the MAHR/MALR registers in read_mac_address() is terribly
      ineffective -- it reads MAHR 4 times and MALR 2 times, while it's enough to
      read each register only once.  Use the local variables to achieve that,
      somewhat beautifying the code while at it...
      Signed-off-by: NSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      37742f02
    • S
      sh_eth: fix kernel oops in skb_put() · 248be83d
      Sergei Shtylyov 提交于
      In a low memory situation the following kernel oops occurs:
      
      Unable to handle kernel NULL pointer dereference at virtual address 00000050
      pgd = 8490c000
      [00000050] *pgd=4651e831, *pte=00000000, *ppte=00000000
      Internal error: Oops: 17 [#1] PREEMPT ARM
      Modules linked in:
      CPU: 0    Not tainted  (3.4-at16 #9)
      PC is at skb_put+0x10/0x98
      LR is at sh_eth_poll+0x2c8/0xa10
      pc : [<8035f780>]    lr : [<8028bf50>]    psr: 60000113
      sp : 84eb1a90  ip : 84eb1ac8  fp : 84eb1ac4
      r10: 0000003f  r9 : 000005ea  r8 : 00000000
      r7 : 00000000  r6 : 940453b0  r5 : 00030000  r4 : 9381b180
      r3 : 00000000  r2 : 00000000  r1 : 000005ea  r0 : 00000000
      Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
      Control: 10c53c7d  Table: 4248c059  DAC: 00000015
      Process klogd (pid: 2046, stack limit = 0x84eb02e8)
      [...]
      
      This is  because netdev_alloc_skb() fails and 'mdp->rx_skbuff[entry]' is left
      NULL but sh_eth_rx() later  uses it without checking.  Add such check...
      Reported-by: NYasushi SHOJI <yashi@atmark-techno.com>
      Signed-off-by: NSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      248be83d
  26. 25 11月, 2015 2 次提交