Skip to content
  1. Nov 21, 2020
  2. Nov 20, 2020
    • Jakub Kicinski's avatar
      Merge branch 'enetc-clean-endianness-warnings-up' · 4082c502
      Jakub Kicinski authored
      
      
      Claudiu Manoil says:
      
      ====================
      enetc: Clean endianness warnings up
      
      Cleanup patches to address the outstanding endianness issues
      in the driver reported by sparse.
      ====================
      
      Link: https://lore.kernel.org/r/20201119101215.19223-1-claudiu.manoil@nxp.com
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      4082c502
    • Claudiu Manoil's avatar
      enetc: Fix endianness issues for enetc_qos · 0dfd294c
      Claudiu Manoil authored
      
      
      Currently the control buffer descriptor (cbd) fields have endianness
      restrictions while the commands passed into the control buffers
      don't (with one exception). This patch fixes offending code,
      by adding endianness accessors for cbd fields and removing the
      unnecessary ones in case of data buffer fields. Currently there's
      no need to convert all commands to little endian format, the patch
      only focuses on fixing current endianness issues reported by sparse.
      
      Signed-off-by: default avatarClaudiu Manoil <claudiu.manoil@nxp.com>
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      0dfd294c
    • Claudiu Manoil's avatar
      enetc: Fix endianness issues for enetc_ethtool · d548d393
      Claudiu Manoil authored
      
      
      These particular fields are specified in the H/W reference
      manual as having network byte order format, so enforce big
      endian annotation for them and clear the related sparse
      warnings in the process.
      
      Signed-off-by: default avatarClaudiu Manoil <claudiu.manoil@nxp.com>
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      d548d393
    • Oliver Herms's avatar
      IPv6: RTM_GETROUTE: Add RTA_ENCAP to result · 6b13d8f7
      Oliver Herms authored
      
      
      This patch adds an IPv6 routes encapsulation attribute
      to the result of netlink RTM_GETROUTE requests
      (i.e. ip route get 2001:db8::).
      
      Signed-off-by: default avatarOliver Herms <oliver.peter.herms@gmail.com>
      Reviewed-by: default avatarDavid Ahern <dsahern@kernel.org>
      Link: https://lore.kernel.org/r/20201118230651.GA8861@tws
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      6b13d8f7
    • Paolo Abeni's avatar
      mptcp: update rtx timeout only if required. · b680a214
      Paolo Abeni authored
      
      
      We must start the retransmission timer only there are
      pending data in the rtx queue.
      Otherwise we can hit a WARN_ON in mptcp_reset_timer(),
      as syzbot demonstrated.
      
      Reported-and-tested-by: default avatar <syzbot+42aa53dafb66a07e5a24@syzkaller.appspotmail.com>
      Fixes: d9ca1de8
      
       ("mptcp: move page frag allocation in mptcp_sendmsg()")
      Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      Reviewed-by: default avatarMat Martineau <mathew.j.martineau@linux.intel.com>
      Reported-by: default avatarNaresh Kamboju <naresh.kamboju@linaro.org>
      Tested-by: default avatarNaresh Kamboju <naresh.kamboju@linaro.org>
      Link: https://lore.kernel.org/r/1a72039f112cae048c44d398ffa14e0a1432db3d.1605737083.git.pabeni@redhat.com
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      b680a214
    • Jakub Kicinski's avatar
      Merge branch 'devlink-move-common-flash_update-calls-to-core' · ac75b096
      Jakub Kicinski authored
      
      
      Jacob Keller says:
      
      ====================
      devlink: move common flash_update calls to core
      
      This series moves a couple common pieces done by all drivers of the
      ->flash_update interface into devlink.c flash update handler. Specifically,
      the core code will now request_firmware and
      devlink_flash_update_(begin|end)_notify.
      
      This cleanup is intended to simplify driver implementations so that they
      have less work to do and are less capable of doing the "wrong" thing.
      
      For request_firmware, this simplification is done as it is not expected that
      drivers would do anything else. It also standardizes all drivers so that
      they use the same interface (request_firmware, as opposed to
      request_firmware_direct), and allows reporting the netlink extended ack with
      the file name attribute.
      
      For status notification, this change prevents drivers from sending a status
      message without properly sending the status end notification. The current
      userspace implementation of devlink relies on this end notification to
      properly close the flash update channel. Without this, the flash update
      process may hang indefinitely. By moving the begin and end calls into the
      core code, it is no longer possible for a driver author to get this wrong.
      
      Changes since v3
      * picked up acked-by and reviewed-by comments
      * fixed the ionic driver to leave the print statement in place
      
      For the original patch that moved request_firmware, see [1]. For the v2 see
      [2]. For further discussion of the issues with devlink flash status see [3].
      For v3 see [4].
      
      [1] https://lore.kernel.org/netdev/20201113000142.3563690-1-jacob.e.keller@intel.com/
      [2] https://lore.kernel.org/netdev/20201113224559.3910864-1-jacob.e.keller@intel.com/
      [3] https://lore.kernel.org/netdev/6352e9d3-02af-721e-3a54-ef99a666be29@intel.com/
      [4] https://lore.kernel.org/netdev/20201117200820.854115-1-jacob.e.keller@intel.com/
      ====================
      
      Link: https://lore.kernel.org/r/20201118190636.1235045-1-jacob.e.keller@intel.com
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      ac75b096