1. 16 Mar, 2023 2 commits
    • Jakub Kicinski's avatar
      Merge branch '100GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue · 0384d055
      Jakub Kicinski authored
      Tony Nguyen says:
      
      ====================
      ice: refactor mailbox overflow detection
      
      Jake Keller says:
      
      The primary motivation of this series is to cleanup and refactor the mailbox
      overflow detection logic such that it will work with Scalable IOV. In
      addition a few other minor cleanups are done while I was working on the
      code in the area.
      
      First, the mailbox overflow functions in ice_vf_mbx.c are refactored to
      store the data per-VF as an embedded structure in struct ice_vf, rather than
      stored separately as a fixed-size array which only works with Single Root
      IOV. This reduces the overall memory footprint when only a handful of VFs
      are used.
      
      The overflow detection functions are also cleaned up to reduce the need for
      multiple separate calls to determine when to report a VF as potentially
      malicious.
      
      Finally, the ice_is_malicious_vf function is cleaned up and moved into
      ice_virtchnl.c since it is not Single Root IOV specific, and thus does not
      belong in ice_sriov.c
      
      I could probably have done this in fewer patches, but I split pieces out to
      hopefully aid in reviewing the overall sequence of changes. This does cause
      some additional thrash as it results in intermediate versions of the
      refactor, but I think its worth it for making each step easier to
      understand.
      
      * '100GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue:
        ice: call ice_is_malicious_vf() from ice_vc_process_vf_msg()
        ice: move ice_is_malicious_vf() to ice_virtchnl.c
        ice: print message if ice_mbx_vf_state_handler returns an error
        ice: pass mbxdata to ice_is_malicious_vf()
        ice: remove unnecessary &array[0] and just use array
        ice: always report VF overflowing mailbox even without PF VSI
        ice: declare ice_vc_process_vf_msg in ice_virtchnl.h
        ice: initialize mailbox snapshot earlier in PF init
        ice: merge ice_mbx_report_malvf with ice_mbx_vf_state_handler
        ice: remove ice_mbx_deinit_snapshot
        ice: move VF overflow message count into struct ice_mbx_vf_info
        ice: track malicious VFs in new ice_mbx_vf_info structure
        ice: convert ice_mbx_clear_malvf to void and use WARN
        ice: re-order ice_mbx_reset_snapshot function
      ====================
      
      Link: https://lore.kernel.org/r/20230313182123.483057-1-anthony.l.nguyen@intel.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      0384d055
    • Krzysztof Kozlowski's avatar
      ptp: ines: drop of_match_ptr for ID table · 543c143d
      Krzysztof Kozlowski authored
      The driver can match only via the DT table so the table should be always
      used and the of_match_ptr does not have any sense (this also allows ACPI
      matching via PRP0001, even though it might not be relevant here).  This
      also fixes !CONFIG_OF error:
      
        drivers/ptp/ptp_ines.c:783:34: error: ‘ines_ptp_ctrl_of_match’ defined but not used [-Werror=unused-const-variable=]
      Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
      Reviewed-by: default avatarSimon Horman <simon.horman@corigine.com>
      Acked-by: default avatarRichard Cochran <richardcochran@gmail.com>
      Link: https://lore.kernel.org/r/20230312132637.352755-1-krzysztof.kozlowski@linaro.orgSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      543c143d
  2. 15 Mar, 2023 30 commits
  3. 14 Mar, 2023 2 commits
  4. 13 Mar, 2023 6 commits