Ariel Ehrenberg
63697ff85a
mlx5en: Use connector type instead of cable type for media detection
...
(cherry picked from commit 89e0e3814e8ca205db7523f6ce6c63cebe4bfb0d)
2025-04-16 04:41:49 +03:00
Konstantin Belousov
477c394ce1
mlx5en: sync channel close with the rq completion processing
...
(cherry picked from commit f0adc907fc7d3eebfc692fd5f4987c97e61b103d)
2025-04-07 04:28:23 +03:00
Konstantin Belousov
772390b6da
mlx5en: bump MLX5E_MAX_BUSDMA_RX_SEGS
...
(cherry picked from commit 480fc5b8e5dee2f111623eaec95c76575d876aa7)
2025-03-20 05:13:38 +02:00
Konstantin Belousov
466623f29d
mlx5en: fix rq->wqe_sz usage
...
(cherry picked from commit 016f40466afc029df28d699650237b182aa88211)
2025-03-20 05:13:38 +02:00
Konstantin Belousov
f38e9a31ba
mlx5: bump the max LRO packet size
...
(cherry picked from commit c2987d7876a04c292d29c74cd6f9c02a82689ed5)
2025-03-20 05:13:38 +02:00
Konstantin Belousov
c083ab4c8b
mlx5en: stop arbitrary limiting max wqe size
...
(cherry picked from commit 89491b1edb3438ebce84e17fdb6c1acab35df601)
2025-03-20 05:13:38 +02:00
Konstantin Belousov
6cb0bd50b5
mlx5: overwrite only the echo reply timestamp from the last packet in LRO
...
(cherry picked from commit bc1023849256b786fd21aad06a1a1b577c5dbd9d)
2025-03-20 05:13:38 +02:00
Konstantin Belousov
f6e15b6620
mlx5: assert CQE structure size
...
(cherry picked from commit 7560ed3a6b9deff85b2e865b6db74eb5e0f5f64b)
2025-03-20 05:13:38 +02:00
Konstantin Belousov
ec55118821
mlx5: correct the predicate asserted in __predict_true()
...
(cherry picked from commit 903996760d1903a7bb594b7f2ed8072e9e6cef9f)
2025-03-20 05:13:38 +02:00
Konstantin Belousov
7b64ccdf96
mlx5: recalculate tcp checksum for ipv6 hw lro coalesced packet
...
(cherry picked from commit efe9a3996ee319358c51681a6d9da8b4bf608b03)
2025-03-20 05:13:37 +02:00
Konstantin Belousov
3c5bf8d9d9
mlx5: recalculate tcp checksum for ipv4 hw lro coalesced packet
...
(cherry picked from commit 3eb6d4b4a25a13b9ea9d825ee44c641b91669d06)
2025-03-20 05:13:37 +02:00
Konstantin Belousov
7ebbf9f756
mlx5_en: correct recalculation of the ipv4 checksum for hw lro packet
...
(cherry picked from commit dd1bd0ec5c91c21f1f60bb8bc58b2f5e794df43f)
2025-03-20 05:13:37 +02:00
Konstantin Belousov
17a322cae6
mlx5en: follow PRM for setting the max hw lro segment size
...
(cherry picked from commit c3555174fd97ce12682e5ed1e2d2586016962a8f)
2025-03-20 05:13:37 +02:00
Konstantin Belousov
aebeaf151d
mlx5en: explain why interface needs to be reopened on hw lro change
...
(cherry picked from commit 93e70e3a9442dca31533f0773ede667fd5379b01)
2025-03-20 05:13:37 +02:00
Konstantin Belousov
114a805bef
mlx5en: make the hw lro control dynamic
...
(cherry picked from commit 02fe38b92175cb8f3a77f7a2bb72afb83836ebd2)
2025-03-20 05:13:37 +02:00
Konstantin Belousov
d0a800a7fc
mlx5core: add mlx5_core_modify_tir()
...
(cherry picked from commit 98071573638a1f31e4007894ce20a4fdc8e33a1d)
2025-03-20 05:13:37 +02:00
Konstantin Belousov
9ac8af72a7
mlx5en: control hw LRO with the driver conf sysctl, leaving IFCAP_LRO to sw
...
(cherry picked from commit 816f27e848e549e6ff895affc29298f68e0bb644)
2025-03-20 05:13:37 +02:00
Konstantin Belousov
cb49625f15
mlx5en: make conf.hw_lro sysctl r/w
...
(cherry picked from commit bbac54b820cb9b76d19082d1f9f36507c3dd3a0e)
2025-03-20 05:13:37 +02:00
Slava Shwartsman
8a78a9aa99
mlx5: Fix BlueField-4 device description
...
(cherry picked from commit 7008b9fab5552fd6dcf5a00cd2c62144d54ef3a0)
2025-03-18 03:41:18 +02:00
Slava Shwartsman
b328b79f6f
mlx5en: Fix domain set usage in TLS tag import functions
...
(cherry picked from commit 85af37e15958bd050093e6368afe6afe8e7a5ced)
2025-03-11 02:59:11 +02:00
Andrew Gallatin
d942e2828c
mlx5en: Fix SIOCSIFCAPNV
...
In 4cc5d081d8c23, a change was introduced that manipulated
drv_ioctl_data->reqcap using IFCAP2 bits. This was noticed
when creating a mixed lagg with mce0 and ixl0 caused the
interfaces' txcsum caps to be disabled.
Fixes: 4cc5d081d8c23
Reviewed by: glebius
Sponsored by: Netflix
MFC After: 7 days
(cherry picked from commit 36fdc42c6a4c828d334471438c4f852e4b5a25e2)
2025-02-07 10:31:40 -05:00
Konstantin Belousov
f16b81e620
mlx5en: only enable to toggle offload caps if they are supported
...
(cherry picked from commit 4cc5d081d8c23020130c5f30ed31f79fa105de74)
2024-12-03 02:39:23 +02:00
Konstantin Belousov
2657d38625
mlx5en: move runtime capabilities checks into helper functions
...
(cherry picked from commit cca0dc49e0ca66f7696920266ea6340b05e3e455)
2024-12-03 02:39:23 +02:00
Gleb Smirnoff
7211ab584e
mlx5e tls: use non-sleeping malloc flag is it was intended
...
(cherry picked from commit 67f93079075be4a2f5b7198fb3bda6d10bbd54e7)
2024-12-03 02:39:23 +02:00
Konstantin Belousov
e6bcfb14f2
mlx5en: fix the sign of mlx5e_tls_st_init() error, convert from Linux to BSD
...
(cherry picked from commit 0d38b0bc8fbc82e3b4664d34d30d9e0091b277b9)
2024-12-03 02:39:23 +02:00
Konstantin Belousov
75cba37ccf
mlx5_en: style function prototype
...
(cherry picked from commit 64bf5a431cbe1842db6f54993d6d426484012a5a)
2024-12-03 02:39:23 +02:00
Andrew Gallatin
9ff300614b
mlx5e tls: Ensure all allocated tags have a hw context associated
...
(cherry picked from commit 81b38bce07940b7a4001dfeb8cd63774229ca950)
2024-12-03 02:39:22 +02:00
Andrew Gallatin
5cd87fd6df
mlx5e: Use M_WAITOK when allocating TLS tags
...
(cherry picked from commit 49597c3e84c4a1cc35f2c392d93db8d0a1cccac2)
2024-12-03 02:39:22 +02:00
Andrew Gallatin
468d647a5a
mlx5e: Immediately initialize TLS send tags
...
(cherry picked from commit 81dbc22ce8b66759a9fc4ebdef5cfc7a6185af22)
2024-12-03 02:39:22 +02:00
Ariel Ehrenberg
b0b932804b
mlx5: Fix handling of port_module_event
...
(cherry picked from commit 253a1fa16b98ac5f73f0820cfdd4f5ad7378757a)
2024-11-30 02:34:54 +02:00
Konstantin Belousov
8925ea58c2
mlx5en: improve reporting of kernel TLS, IPSEC offload, and ratelimit caps
...
Sponsored by: NVidia networking
(cherry picked from commit de7a92756f0ab50e5e243ce9ac680e27f5c41370)
2024-11-19 07:20:09 +02:00
Konstantin Belousov
5b1211bb35
mlx5en: limit reporting eeprom read failure due to unplugged module to verboseboot
...
(cherry picked from commit 2204a4829083bf2a40304ea873d287a5498973d7)
2024-08-06 05:46:26 +03:00
Zhenlei Huang
6b1f530935
net: Remove unneeded NULL check for the allocated ifnet
...
Change 4787572d05 made if_alloc_domain() never fail, then also do the
wrappers if_alloc(), if_alloc_dev(), and if_gethandle().
No functional change intended.
Reviewed by: kp, imp, glebius, stevek
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D45740
(cherry picked from commit aa3860851b9f6a6002d135b1cac7736e0995eedc)
2024-07-12 20:03:37 +08:00
Kristof Provost
9c86768b14
mlx5: handle vlan PF restrictions
...
Reviewed by: kib
MFC after: 2 weeks
Sponsored by: Orange Business Services
Differential Revision: https://reviews.freebsd.org/D45427
(cherry picked from commit 7deadea2eb0aca0b83657d30f895d98795d9d81f)
2024-07-01 18:06:09 +02:00
Zhenlei Huang
d98ced6588
mlx4, mlx5: Eliminate redundent NULL check for packet filter
...
mlx4 and mlx5 are Ethernet devices and ether_ifattach() does an
unconditional bpfattach(). From commit 16d878cc99 [1] and on, we
should not check ifp->if_bpf to tell us whether or not we have any bpf
peers that might be interested in receiving packets. And since commit
2b9600b449 [2], ifp->if_bpf can not be NULL even after the network
interface has been detached.
No functional change intended.
1. 16d878cc99 Fix the following bpf(4) race condition which can result in a panic
2. 2b9600b449 Add dead_bpf_if structure, that should be used as fake bpf_if during ifnet detach
Reviewed by: kp, kib
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D45196
(cherry picked from commit 2439ae948352766f6b993c5103a4c516376bec28)
2024-06-05 12:27:11 +08:00
Konstantin Belousov
ddabe1d3c5
mlx5en: add diagnostic in one more case of failed eeprom read preparation
...
(cherry picked from commit c097967b9af946cf46246cce5adde53f7e955ecc)
2024-05-13 12:51:29 +03:00
Mark Johnston
d87ebf35c8
mlx5: Zero DMA memory mlx5_alloc_cmd_msg() and alloc_cmd_page()
...
These functions may map more memory for DMA than is actually used, since
the allocator operates on multiples of a 4KB page size. Thus,
bus_dmamap_sync() can trigger KMSAN reports when the unused portion of
a page is not zero-ed.
Reported by: KMSAN
Reviewed by: kib
MFC after: 2 weeks
Sponsored by: Klara, Inc.
Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D43133
(cherry picked from commit 47a6fb9d5a2ebec12114a604053ffbd2929f0021)
2024-02-01 09:02:48 -05:00
Konstantin Belousov
a76475313d
mlx5(4): only detach IOV children if iov was successfully initialized
...
(cherry picked from commit 987446fa39e8f6887ea16ad49f00f699b2efd210)
2024-01-11 18:46:52 +02:00
Patrisious Haddad
0312449c67
mlx5: Fix HCA cap 2 query
...
(cherry picked from commit 0cd90ee598cef68cef72db8b912241868d1067d0)
2023-12-06 02:27:14 +02:00
Martin Matuska
ac83e415ef
mlx5_core: fix deadlock when using RXTLS
...
If removing a node of type FS_TYPE_FLOW_DEST we lock the flow group too
late. This can lead to a deadlock with fs_add_dst_fg().
PR: 274715
Reviewed by: kib
Tested by: mm
Differential Revision: https://reviews.freebsd.org/D42368
(cherry picked from commit a592812327deaf69ab226afc5c8a01af43dc03c2)
2023-11-22 09:00:23 +01:00
Konstantin Belousov
8377dd1c9a
mlx5core: add linux/bitops.h include for mlx5_ifc.h use of BIT()
...
(cherry picked from commit 97beac79edf450851474934199e504e6244a7116)
2023-11-22 03:40:28 +02:00
Patrisious Haddad
588203bfbd
mlx5: Introduce new destination type TABLE_TYPE
...
(cherry picked from commit 7b959396ca6fae5635260131eedb9bc19f2726a3)
2023-11-22 03:40:28 +02:00
Konstantin Belousov
d826188941
mlx5ib: adjust for the mlx5_create_auto_grouped_flow_table() interface change
...
(cherry picked from commit b94ef2a3bcbb369d85b276a45504d42f2f2cd369)
2023-11-22 03:40:28 +02:00
Mark Bloch
e073fccf14
mlx5: add ability to attach flow counter to steering rule
...
(cherry picked from commit ad744541311bfddd74ea3c5d49d52a4c366b9762)
2023-11-22 03:40:28 +02:00
Raed Salem
52164cb3bd
mlx5: add fs_counters
...
(cherry picked from commit 35bbcf0916992d77fe1521962db42b3106a701fb)
2023-11-22 03:40:28 +02:00
Mark Bloch
5a2ff1f03a
mlx5: Add a no-append flow insertion mode
...
(cherry picked from commit 6a6af22b6ec42eb0436381fae8dd1b86bc4c6327)
2023-11-22 03:40:28 +02:00
Mark Bloch
67a9c8868a
net/mlx5: Allow creating autogroups with reserved entries
...
(cherry picked from commit 0a5db6bb3a953bd22f53f3607ae6853487548532)
2023-11-22 03:40:28 +02:00
Mark Bloch
4c6a46cea4
net/mlx5: Fix auto group size calculation
...
(cherry picked from commit 04db54fe4309e896c4c80baadbcc47b171722027)
2023-11-22 03:40:28 +02:00
Mark Bloch
0759f76e57
mlx5: Use software enum in APIs instead of PRM
...
(cherry picked from commit 76ed99ed8ad259792fea752461e2cd1ed481e8e1)
2023-11-22 03:40:28 +02:00
Mark Bloch
6fb2eebf64
mlx5: Add packet reformat support to flow rules
...
(cherry picked from commit 45e2e55df665c9b5749c9f2269d1b804147917eb)
2023-11-22 03:40:27 +02:00