1. 04 6月, 2021 1 次提交
    • J
      mlx5: count all link events · 490dceca
      Jakub Kicinski 提交于
      mlx5 devices were observed generating MLX5_PORT_CHANGE_SUBTYPE_ACTIVE
      events without an intervening MLX5_PORT_CHANGE_SUBTYPE_DOWN. This
      breaks link flap detection based on Linux carrier state transition
      count as netif_carrier_on() does nothing if carrier is already on.
      Make sure we count such events.
      
      netif_carrier_event() increments the counters and fires the linkwatch
      events. The latter is not necessary for the use case but seems like
      the right thing to do.
      Signed-off-by: NJakub Kicinski <kuba@kernel.org>
      Signed-off-by: NSaeed Mahameed <saeedm@nvidia.com>
      490dceca
  2. 03 6月, 2021 35 次提交
  3. 02 6月, 2021 4 次提交
    • D
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next · 5fe8e519
      David S. Miller 提交于
      Pablo Neira Ayuso says:
      
      ====================
      Netfilter updates for net-next
      
      The following patchset contains Netfilter updates for net-next:
      
      1) Support for SCTP chunks matching on nf_tables, from Phil Sutter.
      
      2) Skip LDMXCSR, we don't need a valid MXCSR state. From Stefano Brivio.
      
      3) CONFIG_RETPOLINE for nf_tables set lookups, from Florian Westphal.
      
      4) A few Kconfig leading spaces removal, from Juerg Haefliger.
      
      5) Remove spinlock from xt_limit, from Jason Baron.
      
      6) Remove useless initialization in xt_CT, oneliner from Yang Li.
      
      7) Tree-wide replacement of netlink_unicast() by nfnetlink_unicast().
      
      8) Reduce footprint of several structures: xt_action_param,
         nft_pktinfo and nf_hook_state, from Florian.
      
      10) Add nft_thoff() and nft_sk() helpers and use them, also from Florian.
      
      11) Fix documentation in nf_tables pipapo avx2, from Florian Westphal.
      
      12) Fix clang-12 fmt string warnings, also from Florian.
      ====================
      5fe8e519
    • D
      Merge branch 'qualcomm-rmnet-mapv5' · 92c35cfd
      David S. Miller 提交于
      Sharath Chandra Vurukala says:
      
      ====================
      net: qualcomm: rmnet: Enable Mapv5
      
      This series introduces the MAPv5 packet format.
      
         Patch 0 documents the MAPv4/v5.
         Patch 1 introduces the MAPv5 and the Inline checksum offload for RX/Ingress.
         Patch 2 introduces the MAPv5 and the Inline checksum offload for TX/Egress.
      
         A new checksum header format is used as part of MAPv5.For RX checksum offload,
         the checksum is verified by the HW and the validity is marked in the checksum
         header of MAPv5. For TX, the required metadata is filled up so hardware can
         compute the checksum.
      
         v1->v2:
         - Fixed the compilation errors, warnings reported by kernel test robot.
         - Checksum header definition is expanded to support big, little endian
                 formats as mentioned by Jakub.
      
         v2->v3:
         - Fixed compilation errors reported by kernel bot for big endian flavor.
      
         v3->v4:
         - Made changes to use masks instead of C bit-fields as suggested by Jakub/Alex.
      
         v4->v5:
         - Corrected checkpatch errors and warnings reported by patchwork.
      
         v5->v6:
         - Corrected the bug identified by Alex and incorporated all his comments.
      
         v6->v7:
         - Removed duplicate inclusion of linux/bitfield.h in rmnet_map_data.c
      
         v7->v8:
         - Have addressed comments given by JAkub on v7 patches.
         - As suggested by Jakub, skb_cow_head() is used instead of expanding
           the head directly. This is now done in  rmnet_map_egress_handler().
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      92c35cfd
    • S
      net: ethernet: rmnet: Add support for MAPv5 egress packets · b6e5d27e
      Sharath Chandra Vurukala 提交于
      Adding support for MAPv5 egress packets.
      
      This involves adding the MAPv5 header and setting the csum_valid_required
      in the checksum header to request HW compute the checksum.
      
      Corresponding stats are incremented based on whether the checksum is
      computed in software or HW.
      
      New stat has been added which represents the count of packets whose
      checksum is calculated by the HW.
      Signed-off-by: NSharath Chandra Vurukala <sharathv@codeaurora.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b6e5d27e
    • S
      net: ethernet: rmnet: Support for ingress MAPv5 checksum offload · e1d9a90a
      Sharath Chandra Vurukala 提交于
      Adding support for processing of MAPv5 downlink packets.
      It involves parsing the Mapv5 packet and checking the csum header
      to know whether the hardware has validated the checksum and is
      valid or not.
      
      Based on the checksum valid bit the corresponding stats are
      incremented and skb->ip_summed is marked either CHECKSUM_UNNECESSARY
      or left as CHEKSUM_NONE to let network stack revalidate the checksum
      and update the respective snmp stats.
      
      Current MAPV1 header has been modified, the reserved field in the
      Mapv1 header is now used for next header indication.
      Signed-off-by: NSharath Chandra Vurukala <sharathv@codeaurora.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e1d9a90a