1. 24 Nov, 2023 5 commits
    • Guangguan Wang's avatar
      net/smc: add sysctl for max conns per lgr for SMC-R v2.1 · 1f2c9dd7
      Guangguan Wang authored
      Add a new sysctl: net.smc.smcr_max_conns_per_lgr, which is
      used to control the preferred max connections per lgr for
      SMC-R v2.1. The default value of this sysctl is 255, and
      the acceptable value ranges from 16 to 255.
      Signed-off-by: default avatarGuangguan Wang <guangguan.wang@linux.alibaba.com>
      Reviewed-by: default avatarDust Li <dust.li@linux.alibaba.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      1f2c9dd7
    • Guangguan Wang's avatar
      net/smc: add sysctl for max links per lgr for SMC-R v2.1 · f8e80fc4
      Guangguan Wang authored
      Add a new sysctl: net.smc.smcr_max_links_per_lgr, which is
      used to control the preferred max links per lgr for SMC-R
      v2.1. The default value of this sysctl is 2, and the acceptable
      value ranges from 1 to 2.
      Signed-off-by: default avatarGuangguan Wang <guangguan.wang@linux.alibaba.com>
      Reviewed-by: default avatarDust Li <dust.li@linux.alibaba.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      f8e80fc4
    • Geetha sowjanya's avatar
      octeontx2-pf: TC flower offload support for ICMP type and code · a8d4879d
      Geetha sowjanya authored
      Adds tc offload support for matching on ICMP type and code.
      
      Example usage:
      To enable adding tc ingress rules
              tc qdisc add dev eth0 ingress
      
      TC rule drop the ICMP echo reply:
              tc filter add dev eth0 protocol ip parent ffff: \
              flower ip_proto icmp type 8 code 0 skip_sw action drop
      
      TC rule to drop ICMPv6 echo reply:
              tc filter add dev eth0 protocol ipv6 parent ffff: flower \
              indev eth0 ip_proto icmpv6 type 128 code 0 action drop
      Signed-off-by: default avatarGeetha sowjanya <gakula@marvell.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a8d4879d
    • Christian Marangi's avatar
      net: phy: correctly check soft_reset ret ONLY if defined for PHY · aadbd27f
      Christian Marangi authored
      Introduced by commit 6e2d85ec ("net: phy: Stop with excessive soft
      reset").
      
      soft_reset call for phy_init_hw had multiple revision across the years
      and the implementation goes back to 2014. Originally was a simple call
      to write the generic PHY reset BIT, it was then moved to a dedicated
      function. It was then added the option for PHY driver to define their
      own special way to reset the PHY. Till this change, checking for ret was
      correct as it was always filled by either the generic reset or the
      custom implementation. This changed tho with commit 6e2d85ec ("net:
      phy: Stop with excessive soft reset"), as the generic reset call to PHY
      was dropped but the ret check was never made entirely optional and
      dependent whether soft_reset was defined for the PHY driver or not.
      
      Luckly nothing was ever added before the soft_reset call so the ret
      check (in the case where a PHY didn't had soft_reset defined) although
      wrong, never caused problems as ret was init 0 at the start of
      phy_init_hw.
      
      To prevent any kind of problem and to make the function cleaner and more
      robust, correctly move the ret check if the soft_reset section making it
      optional and needed only with the function defined.
      Signed-off-by: default avatarChristian Marangi <ansuelsmth@gmail.com>
      Reviewed-by: default avatarLarysa Zaremba <larysa.zaremba@intel.com>
      Reviewed-by: default avatarSimon Horman <horms@kernel.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      aadbd27f
    • Breno Leitao's avatar
      Documentation: Document each netlink family · f061c9f7
      Breno Leitao authored
      This is a simple script that parses the Netlink YAML spec files
      (Documentation/netlink/specs/), and generates RST files to be rendered
      in the Network -> Netlink Specification documentation page.
      
      Create a python script that is invoked during 'make htmldocs', reads the
      YAML specs input file and generate the correspondent RST file.
      
      Create a new Documentation/networking/netlink_spec index page, and
      reference each Netlink RST file that was processed above in this main
      index.rst file.
      
      In case of any exception during the parsing, dump the error and skip
      the file.
      
      Do not regenerate the RST files if the input files (YAML) were not
      changed in-between invocations.
      Suggested-by: default avatarJakub Kicinski <kuba@kernel.org>
      Signed-off-by: default avatarBreno Leitao <leitao@debian.org>
      
      ----
      Changelog:
      
      V3:
      	* Do not regenerate the RST files if the input files were not
      	  changed. In order to do it, a few things changed:
      	  - Rely on Makefile more to find what changed, and trigger
      	    individual file processing
      	  - The script parses file by file now (instead of batches)
      	  - Create a new option to generate the index file
      
      V2:
      	* Moved the logic from a sphinx extension to a external script
      	* Adjust some formatting as suggested by Donald Hunter and Jakub
      	* Auto generating all the rsts instead of having stubs
      	* Handling error gracefully
      Reviewed-by: default avatarJakub Kicinski <kuba@kernel.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      f061c9f7
  2. 23 Nov, 2023 27 commits
  3. 22 Nov, 2023 8 commits