1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/mellanox/mlx5/core
Leon Romanovsky e562f2d46d net/mlx5e: Approximate IPsec per-SA payload data bytes count
ConnectX devices lack ability to count payload data byte size which is
needed for SA to return to libreswan for rekeying.

As a solution let's approximate that by decreasing headers size from
total size counted by flow steering. The calculation doesn't take into
account any other headers which can be in the packet (e.g. IP extensions).

Fixes: 5a6cddb89b ("net/mlx5e: Update IPsec per SA packets/bytes count")
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2024-06-28 12:58:12 +01:00
..
diag tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
en dma-mapping updates for Linux 6.10 2024-05-20 10:23:39 -07:00
en_accel net/mlx5e: Approximate IPsec per-SA payload data bytes count 2024-06-28 12:58:12 +01:00
esw net/mlx5: E-switch, Create ingress ACL when needed 2024-06-28 12:58:11 +01:00
fpga net/mlx5: remove many unnecessary NULL values 2023-08-07 10:53:52 -07:00
ipoib net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
lag net/mlx5: Fix tainted pointer delete is case of flow rules creation fail 2024-06-05 12:51:25 -07:00
lib net/mlx5: Stop waiting for PCI if pci channel is offline 2024-06-05 14:07:16 +01:00
sf tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
steering Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-04-11 14:23:47 -07:00
alloc.c
cmd.c net/mlx5: Discard command completions in internal error 2024-05-10 19:38:33 -07:00
cq.c
debugfs.c net/mlx5e: debugfs, Add reset option for command interface stats 2024-04-03 19:47:58 -07:00
dev.c net/mlx5: Change missing SyncE capability print to debug 2024-02-05 16:45:52 -08:00
devlink.c net/mlx5: Check capability for fw_reset 2024-03-01 23:02:26 -08:00
devlink.h net/mlx5: Expose max possible SFs via devlink resource 2023-08-14 14:40:20 -07:00
dpll.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-03-07 10:29:36 -08:00
ecpf.c Revert "mlx5 updates 2023-12-20" 2024-01-07 17:16:11 -08:00
ecpf.h
en.h net/mlx5e: Modifying channels number and updating TX queues 2024-05-13 16:35:47 -07:00
en_arfs.c net/mlx5e: Prevent deadlock while disabling aRFS 2024-04-12 19:13:53 -07:00
en_common.c net/mlx5e: Use the correct lag ports number when creating TISes 2024-01-24 00:15:32 -08:00
en_dcbnl.c net/mlx5e: Remove mlx5e_dbg() and msglvl support 2023-06-16 12:02:07 -07:00
en_dim.c net/mlx5e: Support updating coalescing configuration without resetting channels 2024-04-22 14:22:16 -07:00
en_ethtool.c net/mlx5e: Modifying channels number and updating TX queues 2024-05-13 16:35:47 -07:00
en_fs.c net/mlx5: Support matching on l4_type for ttc_table 2024-04-03 19:47:59 -07:00
en_fs_ethtool.c mlx5-updates-2023-07-24 2023-07-28 13:41:59 -07:00
en_main.c net/mlx5e: Add mqprio_rl cleanup and free in mlx5e_priv_cleanup() 2024-06-28 12:58:11 +01:00
en_rep.c net/mlx5e: Implement ethtool callbacks for supporting per-queue coalescing 2024-04-22 14:22:16 -07:00
en_rep.h net/mlx5e: rep, store send to vport rules per peer 2023-06-02 12:10:46 -07:00
en_rx.c xsk: use generic DMA sync shortcut instead of a custom one 2024-05-08 08:51:20 +02:00
en_selftest.c net/mlx5e: Use ethtool_sprintf/puts() to fill selftests strings 2024-04-03 19:47:58 -07:00
en_stats.c net/mlx5e: Do not use ptp structure for tx ts stats when not initialized 2024-05-24 13:27:08 +01:00
en_stats.h net/mlx5e: Expose the VF/SF RX drop counter on the representor 2024-04-11 19:31:12 -07:00
en_tc.c net/mlx5e: flower: check for unsupported control flags 2024-05-02 18:19:13 -07:00
en_tc.h net/mlx5e: Some cleanup in mlx5e_tc_stats_matchall() 2023-11-15 11:34:29 -08:00
en_tx.c net/mlx5e: Fix UDP GSO for encapsulated packets 2024-05-24 13:27:08 +01:00
en_txrx.c net/mlx5e: Dynamically allocate DIM structure for SQs/RQs 2024-04-22 14:22:16 -07:00
eq.c net/mlx5: Use max_num_eqs_24b capability if set 2024-06-28 12:58:11 +01:00
eswitch.c devlink: extend devlink_param *set pointer 2024-04-22 13:05:19 -07:00
eswitch.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-05-14 10:53:19 -07:00
eswitch_offloads.c net/mlx5: Use max_num_eqs_24b when setting max_io_eqs 2024-06-28 12:58:11 +01:00
eswitch_offloads_termtbl.c net/mlx5: Refactor mlx5_flow_destination->rep pointer to vport num 2023-12-13 17:22:18 -08:00
events.c net/mlx5: Parallelize vhca event handling 2023-10-14 10:16:29 -07:00
fs_cmd.c net/mlx5: Bridge, fix multicast packets sent to uplink 2024-01-24 00:15:35 -08:00
fs_cmd.h net/mlx5: fs, Command to control TX flow table root 2023-12-13 18:03:30 -08:00
fs_core.c devlink: extend devlink_param *set pointer 2024-04-22 13:05:19 -07:00
fs_core.h net/mlx5: Annotate struct mlx5_flow_handle with __counted_by 2023-11-15 11:34:30 -08:00
fs_counters.c net/mlx5: Annotate struct mlx5_fc_bulk with __counted_by 2023-11-15 11:34:30 -08:00
fs_ft_pool.c
fs_ft_pool.h
fw.c net/mlx5: Stop waiting for PCI if pci channel is offline 2024-06-05 14:07:16 +01:00
fw_reset.c devlink: extend devlink_param *set pointer 2024-04-22 13:05:19 -07:00
fw_reset.h net/mlx5: Check with FW that sync reset completed successfully 2023-08-14 14:40:21 -07:00
health.c net/mlx5: Stop waiting for PCI if pci channel is offline 2024-06-05 14:07:16 +01:00
hwmon.c net/mlx5: Expose NIC temperature via hardware monitoring kernel API 2023-08-09 15:52:16 -07:00
hwmon.h net/mlx5: Expose NIC temperature via hardware monitoring kernel API 2023-08-09 15:52:16 -07:00
irq_affinity.c net/mlx5: Free used cpus mask when an IRQ is released 2023-11-15 22:34:09 -08:00
Kconfig mlx5: Implement SyncE support using DPLL infrastructure 2023-09-17 11:50:20 +01:00
main.c net/mlx5: Always stop health timer during driver removal 2024-06-05 14:07:16 +01:00
Makefile net/mlx5: SD, Introduce SD lib 2024-03-07 00:40:38 -08:00
mcg.c
mlx5_core.h net/mlx5: Use max_num_eqs_24b capability if set 2024-06-28 12:58:11 +01:00
mlx5_irq.h net/mlx5: Refactor completion IRQ request/release API 2023-08-07 10:53:50 -07:00
mr.c net/mlx5e: Use query_special_contexts cmd only once per mdev 2023-05-24 20:44:18 -07:00
pagealloc.c net/mlx5: Don't call give_pages() if request 0 page 2024-04-03 19:47:59 -07:00
pci_irq.c net/mlx5: Use max_num_eqs_24b capability if set 2024-06-28 12:58:11 +01:00
pci_irq.h net/mlx5: Increase size of irq name buffer 2023-11-15 22:34:31 -08:00
pd.c
port.c net/mlx5: Expose Management PCIe Index Register (MPIR) 2023-12-13 18:03:30 -08:00
qos.c net/mlx5e: QoS, Fix wrongfully setting parent_element_id on MODIFY_SCHEDULING_ELEMENT 2023-01-18 00:01:39 -08:00
qos.h net/mlx5e: QoS, Fix wrongfully setting parent_element_id on MODIFY_SCHEDULING_ELEMENT 2023-01-18 00:01:39 -08:00
rdma.c net/mlx5: E-Switch, Use metadata matching for RoCE loopback rule 2023-05-19 10:50:31 -07:00
rdma.h
rl.c
sriov.c net/mlx5: Allow 0 for total host VFs 2023-08-07 11:48:39 -07:00
transobj.c
uar.c net/mlx5e: Remove unneeded io-mapping.h #include 2022-11-29 21:09:41 -08:00
vport.c net/mlx5: Fix query of sd_group field 2024-01-24 00:15:33 -08:00
wq.c
wq.h net/mlx5e: Support enhanced CQE compression 2022-11-12 02:20:19 -08:00