From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1641C1383 for ; Sat, 21 Oct 2023 06:46:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="K7kHNShU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 72F42C433C7; Sat, 21 Oct 2023 06:46:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697870787; bh=4zu3wtd50RuXsHki+swaE8W/rJ2eI0DIwya6TO2ISeQ=; h=From:To:Cc:Subject:Date:From; b=K7kHNShUl309PtjRuekrX07LJI35yNO+NcG411Eeomn8x01wnlI6Hyf/ObpcoZIio 8K/cI24XyrtjH8qLOYa+WcLJIngyL586a+QnBw/iciW/LyJdPRkZOqvhZdp343aVIt 5jbtc4xUasmmG9jtFBlaOkxmKyLYrI7JWt4nSXwh8CoPONz4VdklO78n7c6etgc3vz FFFZr+E9NrwOUPXu0FXt5xZQqpX+8Gz+dxORIcKhBDJnCkUQHZlHn1f8eauAEfoBJT kYBiTILzfgijbcVfezKGkMTPMEL8GhrTIE/hcE96kW6hJnEsaZEPVsrSN780AMjfD3 YkvSP2qQeChjg== From: Saeed Mahameed To: "David S. Miller" , Jakub Kicinski , Paolo Abeni , Eric Dumazet Cc: Saeed Mahameed , netdev@vger.kernel.org, Tariq Toukan Subject: [pull request][net-next V2 00/15] mlx5 updates 2023-10-19 Date: Fri, 20 Oct 2023 23:46:05 -0700 Message-ID: <20231021064620.87397-1-saeed@kernel.org> X-Mailer: git-send-email 2.41.0 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Saeed Mahameed v1->v2: - Add missing Fixes tags - Acked-by: Steffen for the xfrm patches This series provides ipsec and misc updates for mlx5 driver. For more information please see tag log below. Please pull and let me know if there is any problem. The following changes since commit 75e7d0b2d22370c83c6dcb0cedbd0cca74383b5e: net: wwan: replace deprecated strncpy with strscpy (2023-10-20 18:15:05 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux.git tags/mlx5-updates-2023-10-19 for you to fetch changes up to 94a89bee8e4a9d22d5161f6aac965154737d6e24: net/mlx5: Allow sync reset flow when BF MGT interface device is present (2023-10-20 23:43:26 -0700) ---------------------------------------------------------------- mlx5-updates-2023-10-19 1) Patches 1-9 from Leon and Patrisious: Leon Says: ========== This series does two things at the same time, but they are connected together: * Rewrite and fix mlx5 IPsec replay window implementation. * Connect XFRM statistics with offloaded counters to report replay window reason statistics. First two patches are XFRM core changes to allow reuse of already existing callback to fill all statistics. Next two patches are fixes to replay window and sequence packet number misconfiguration. They are not urgent and can go to -next. Rest of the patches are rewrite of mlx5 replay window implementation. As an example, the end result, after simulating replay window attack with 5 packets: [leonro@c ~]$ grep XfrmInStateSeqError /proc/net/xfrm_stat XfrmInStateSeqError 5 [leonro@c ~]$ sudo ip -s x s <...> stats: replay-window 0 replay 5 failed 0 ========== 2) Moshe Shemesh improves sync reset flow when BF MGT interface device is present 3) Build warning cleanups for snprintf ---------------------------------------------------------------- Leon Romanovsky (7): xfrm: generalize xdo_dev_state_update_curlft to allow statistics update xfrm: get global statistics from the offloaded device net/mlx5e: Honor user choice of IPsec replay window size net/mlx5e: Ensure that IPsec sequence packet number starts from 1 net/mlx5e: Remove exposure of IPsec RX flow steering struct net/mlx5e: Connect mlx5 IPsec statistics with XFRM core net/mlx5e: Delete obsolete IPsec code Moshe Shemesh (2): net/mlx5: print change on SW reset semaphore returns busy net/mlx5: Allow sync reset flow when BF MGT interface device is present Patrisious Haddad (2): net/mlx5e: Unify esw and normal IPsec status table creation/destruction net/mlx5e: Add IPsec and ASO syndromes check in HW Rahul Rameshbabu (3): net/mlx5: Increase size of irq name buffer net/mlx5e: Check return value of snprintf writing to fw_version buffer net/mlx5e: Check return value of snprintf writing to fw_version buffer for representors Saeed Mahameed (1): net/mlx5e: Reduce the size of icosq_str Documentation/networking/xfrm_device.rst | 4 +- .../net/ethernet/mellanox/mlx5/core/diag/crdump.c | 5 +- .../ethernet/mellanox/mlx5/core/en/reporter_rx.c | 4 +- .../ethernet/mellanox/mlx5/core/en_accel/ipsec.c | 57 ++- .../ethernet/mellanox/mlx5/core/en_accel/ipsec.h | 23 +- .../mellanox/mlx5/core/en_accel/ipsec_fs.c | 410 ++++++++++++++++++--- .../mellanox/mlx5/core/en_accel/ipsec_offload.c | 2 +- .../mellanox/mlx5/core/en_accel/ipsec_rxtx.c | 25 +- .../mellanox/mlx5/core/en_accel/ipsec_rxtx.h | 1 - .../mellanox/mlx5/core/en_accel/ipsec_stats.c | 1 - .../net/ethernet/mellanox/mlx5/core/en_ethtool.c | 13 +- drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 12 +- .../net/ethernet/mellanox/mlx5/core/esw/ipsec_fs.c | 160 +------- .../net/ethernet/mellanox/mlx5/core/esw/ipsec_fs.h | 15 - drivers/net/ethernet/mellanox/mlx5/core/fw_reset.c | 32 +- drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c | 6 +- drivers/net/ethernet/mellanox/mlx5/core/pci_irq.h | 3 + include/linux/mlx5/mlx5_ifc.h | 7 + include/linux/netdevice.h | 2 +- include/net/xfrm.h | 14 +- net/xfrm/xfrm_proc.c | 1 + net/xfrm/xfrm_state.c | 17 +- net/xfrm/xfrm_user.c | 2 +- 23 files changed, 516 insertions(+), 300 deletions(-)