psp: fix transport mode with ipv6 extension headers
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest4 patches 8 repliesIn review
- v22 patches 3 repliesSuperseded
- v12 patches 8 repliesSuperseded
Changes in v3 from the cover letter
- new patch 1 to fix tso checksum seed calculation in mlx5e (Daniel)
- accept routing headers and reject ah (Daniel)
- split the psp_dev_rcv() change into its own patch (Daniel)
- return -EINVAL instead of -1 (Daniel)
- selftest: one variant per extension header type (Daniel)
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | net/mlx5e: psp: tso: replace only the length in checksum seeddrivers/ | +9 | 1 reply | |
| 2/4 | psp: support ipv6 extension headers in psp_dev_rcv() decapnet/ | +59 | 6 replies | |
| 3/4 | psp: support ipv6 extension headers in psp_dev_encapsulate()net/ | +11 | 0 replies | |
| 4/4 | selftests: drv-net: psp: test ipv6 tcp socket with extension headerstools/ tools/ | +135 | 1 reply |
Reviews trailers per patch
1 of 4 patches has a Reviewed-by or Acked-by.
| Patch | Daniel Zahka |
|---|---|
| 1/4 | A-b |
| 2/4 | |
| 3/4 | |
| 4/4 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net v3 0/4] psp: fix transport mode with ipv6 extension headers
While working on adding support for socket-less psp associations, I noticed that this case was not being handled correctly. It will be more relevant with that series, because it adds udp support, for which the psp nexthdr will be taken from the inner packet.
Since the tx association encodes intent to send encrypted packets, but because of other configuration (socket options, routes) the packets are sent unencrypted, sending this change as a fix.
The first patch fixes an mlx5e bug in tso checksum calculation for psp with ipv6 routing headers.
The second patch fixes the receive path when ipv6 extension headers are present.
The third patch fixes the send path when ipv6 extension headers are present.
The fourth patch adds selftests for these cases.
Note that no test case is added for ipv6 fragment headers. As far as I can tell it's not possible to tx fragments from an ipv6 tcp socket.
All testing was done on connectx-7.
v3:
- new patch 1 to fix tso checksum seed calculation in mlx5e (Daniel)
- accept routing headers and reject ah (Daniel)
- split the psp_dev_rcv() change into its own patch (Daniel)
- return -EINVAL instead of -1 (Daniel)
- selftest: one variant per extension header type (Daniel)
v2: https://lore.kernel.org/netdev/[email protected]
- walk the extension headers instead of dropping (Daniel)
- reject fragment headers (Bjorn, Daniel)
- reject routing headers
- psp_dev_rcv() handle the rx case as well
v1: https://lore.kernel.org/netdev/[email protected]
Todd Freed (4):
net/mlx5e: psp: tso: replace only the length in checksum seed
psp: support ipv6 extension headers in psp_dev_rcv() decap
psp: support ipv6 extension headers in psp_dev_encapsulate()
selftests: drv-net: psp: test ipv6 tcp socket with extension headers
.../mellanox/mlx5/core/en_accel/psp_rxtx.c | 21 ++- net/psp/psp_main.c | 79 +++++++++- tools/testing/selftests/drivers/net/config | 1 + tools/testing/selftests/drivers/net/psp.py | 137 +++++++++++++++++- 4 files changed, 215 insertions(+), 23 deletions(-)
Signature · 1 line
2.53.0-Meta