1. 04 May, 2020 5 commits
  2. 03 May, 2020 31 commits
  3. 02 May, 2020 4 commits
    • Dmitry Yakunin's avatar
      inet_diag: bc: read cgroup id only for full sockets · ee1bd483
      Dmitry Yakunin authored
      Fix bug introduced by commit b1f3e43d ("inet_diag: add support for
      cgroup filter").
      Signed-off-by: default avatarDmitry Yakunin <zeil@yandex-team.ru>
      Reported-by: syzbot+ee80f840d9bf6893223b@syzkaller.appspotmail.com
      Reported-by: syzbot+13bef047dbfffa5cd1af@syzkaller.appspotmail.com
      Fixes: b1f3e43d ("inet_diag: add support for cgroup filter")
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      ee1bd483
    • Andrew Lunn's avatar
      net: ethernet: fec: Replace interrupt driven MDIO with polled IO · f166f890
      Andrew Lunn authored
      Measurements of the MDIO bus have shown that driving the MDIO bus
      using interrupts is slow. Back to back MDIO transactions take about
      90us, with 25us spent performing the transaction, and the remainder of
      the time the bus is idle.
      
      Replacing the completion interrupt with polled IO results in back to
      back transactions of 40us. The polling loop waiting for the hardware
      to complete the transaction takes around 28us. Which suggests
      interrupt handling has an overhead of 50us, and polled IO nearly
      halves this overhead, and doubles the MDIO performance.
      
      Care has to be taken when setting the MII_SPEED register, or it can
      trigger an MII event> That then upsets the polling, due to an
      unexpected pending event.
      Suggested-by: default avatarChris Heally <cphealy@gmail.com>
      Signed-off-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      f166f890
    • David S. Miller's avatar
      smc: Remove unused function. · 40b94224
      David S. Miller authored
      net/smc/smc_llc.c:544:12: warning: ‘smc_llc_alloc_alt_link’ defined but not used [-Wunused-function]
       static int smc_llc_alloc_alt_link(struct smc_link_group *lgr,
                  ^~~~~~~~~~~~~~~~~~~~~~
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      40b94224
    • David S. Miller's avatar
      Merge branch 'ptp-Add-adjust-phase-to-support-phase-offset' · 6c5af965
      David S. Miller authored
      Vincent Cheng says:
      
      ====================
      ptp: Add adjust phase to support phase offset.
      
      This series adds adjust phase to the PTP Hardware Clock device interface.
      
      Some PTP hardware clocks have a write phase mode that has
      a built-in hardware filtering capability.  The write phase mode
      utilizes a phase offset control word instead of a frequency offset
      control word.  Add adjust phase function to take advantage of this
      capability.
      
      Changes since v1:
      - As suggested by Richard Cochran:
        1. ops->adjphase is new so need to check for non-null function pointer.
        2. Kernel coding style uses lower_case_underscores.
        3. Use existing PTP clock API for delayed worker.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      6c5af965