1. 19 Apr, 2023 4 commits
  2. 18 Apr, 2023 34 commits
  3. 17 Apr, 2023 2 commits
    • Horatiu Vultur's avatar
      net: lan966x: Fix lan966x_ifh_get · 99676a57
      Horatiu Vultur authored
      From time to time, it was observed that the nanosecond part of the
      received timestamp, which is extracted from the IFH, it was actually
      bigger than 1 second. So then when actually calculating the full
      received timestamp, based on the nanosecond part from IFH and the second
      part which is read from HW, it was actually wrong.
      
      The issue seems to be inside the function lan966x_ifh_get, which
      extracts information from an IFH(which is an byte array) and returns the
      value in a u64. When extracting the timestamp value from the IFH, which
      starts at bit 192 and have the size of 32 bits, then if the most
      significant bit was set in the timestamp, then this bit was extended
      then the return value became 0xffffffff... . And the reason of this is
      because constants without any postfix are treated as signed longs and
      that is the reason why '1 << 31' becomes 0xffffffff80000000.
      This is fixed by adding the postfix 'ULL' to 1.
      
      Fixes: fd762783 ("net: lan966x: Stop using packing library")
      Signed-off-by: default avatarHoratiu Vultur <horatiu.vultur@microchip.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      99676a57
    • David S. Miller's avatar
      Merge branch 'sctp-info-dump' · 0af03871
      David S. Miller authored
      Xin Long says:
      
      ====================
      sctp: add some missing peer_capables in sctp info dump
      
      The 1st patch removes the unused and obsolete hostname_address from
      sctp_association peer and also the bit from sctp_info peer_capables,
      and then reuses its bit for reconf_capable and use the higher
      available bit for intl_capable in the 2nd patch.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      0af03871