1. 23 Feb, 2022 27 commits
  2. 22 Feb, 2022 9 commits
  3. 21 Feb, 2022 4 commits
    • David S. Miller's avatar
      Merge branch 'octeontx2-ptp-updates' · 7b779cc8
      David S. Miller authored
      Rakesh Babu Saladi says:
      
      ====================
      RVU AF and NETDEV drivers' PTP updates.
      
      Patch 1: Add suppot such that RVU drivers support new timestamp format.
      Patch 2: This patch adds workaround for PTP errata.
      
      Changes made from  v1 to v2
      1. CC'd Richard Cochran to review PTP related patches.
      2. Removed a patch from the old patch series. Will submit the removed patch
      separately.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      7b779cc8
    • Naveen Mamindlapalli's avatar
      octeontx2-af: cn10k: add workaround for ptp errata · 6426fc3a
      Naveen Mamindlapalli authored
      This patch adds workaround for PTP errata given below.
      
      1. At the time of 1 sec rollover of nano-second counter,
         the nano-second counter is set to 0. However, it should
         be set to (existing counter_value - 10^9). This leads to
         an accumulating error in the timestamp value with each sec
         rollover.
      2. Additionally, the nano-second counter currently is rolling
         over at 'h3B9A_C9FF. It should roll over at 'h3B9A_CA00.
      
      The workaround for issue #1 is to speed up the ptp clock by
      adjusting PTP_CLOCK_COMP register to the desired value to
      compensate for the nanoseconds lost per each second.
      
      The workaround for issue #2 is to slow down the ptp clock
      such that the rollover occurs at ~1sec.
      Signed-off-by: default avatarNaveen Mamindlapalli <naveenm@marvell.com>
      Signed-off-by: default avatarSunil Kovvuri Goutham <sgoutham@marvell.com>
      Signed-off-by: default avatarRakesh Babu Saladi <rsaladi2@marvell.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      6426fc3a
    • Naveen Mamindlapalli's avatar
      octeontx2-pf: cn10k: add support for new ptp timestamp format · 74c1b233
      Naveen Mamindlapalli authored
      The cn10k hardware ptp timestamp format has been modified primarily
      to support 1-step ptp clock. The 64-bit timestamp used by hardware is
      split into two 32-bit fields, the upper one holds seconds, the lower
      one nanoseconds. A new register (PTP_CLOCK_SEC) has been added that
      returns the current seconds value. The nanoseconds register PTP_CLOCK_HI
      resets after every second. The cn10k RPM block provides Rx/Tx timestamps
      to the NIX block using the new timestamp format. The software can read
      the current timestamp in nanoseconds by reading both PTP_CLOCK_SEC &
      PTP_CLOCK_HI registers.
      
      This patch provides support for new timestamp format.
      Signed-off-by: default avatarNaveen Mamindlapalli <naveenm@marvell.com>
      Signed-off-by: default avatarSunil Kovvuri Goutham <sgoutham@marvell.com>
      Signed-off-by: default avatarRakesh Babu Saladi <rsaladi2@marvell.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      74c1b233
    • David S. Miller's avatar
      Merge branch 'bonding-ipv6-NA-NS-monitor' · 76ef6b80
      David S. Miller authored
      Hangbin Liu says:
      
      ====================
      bonding: add IPv6 NS/NA monitor support
      
      This patch add bond IPv6 NS/NA monitor support. A new option
      ns_ip6_target is added, which is similar with arp_ip_target.
      The IPv6 NS/NA monitor will take effect when there is a valid IPv6
      address. Both ARP monitor and NS monitor will working at the same time.
      
      A new extra storage field is added to struct bond_opt_value for IPv6 support.
      
      Function bond_handle_vlan() is split from bond_arp_send() for both
      IPv4/IPv6 usage.
      
      To alloc NS message and send out. ndisc_ns_create() and ndisc_send_skb()
      are exported.
      
      v1 -> v2:
      1. remove sysfs entry[1] and only keep netlink support.
      
      RFC -> v1:
      1. define BOND_MAX_ND_TARGETS as BOND_MAX_ARP_TARGETS
      2. adjust for reverse xmas tree ordering of local variables
      3. remove bond_do_ns_validate()
      4. add extra field for bond_opt_value
      5. set IS_ENABLED(CONFIG_IPV6) for IPv6 codes
      
      [1] https://lore.kernel.org/netdev/8863.1645071997@famine
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      76ef6b80