Skip to content

pktgen IPsec support

Fan Du netdev 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 posting 2/28 patches 0 repliesNew
  2. v5 Latest0 of 8 patches 1 replyIn review
  3. v4 posting 1/28 patches 1 replySuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v37 patches7 repliesSuperseded
v25 patches11 repliesSuperseded
v1 RFC5 patches1 replySuperseded

Changes in v5 from the cover letter

Rebase this patchset on top of xfrm locks namespace support.

Patches in v5 No applies recorded yet

None of the 8 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCHv5 net-next 0/8] pktgen IPsec support

Hi, Dave

Current pktgen IPsec supports only transport/ESP combinnation, This patchset enables user to do almost any IPsec transformation, both transport/tunnel mode, and AH/ESP/IPcomp type.

Below configuration has been tested, and using Wireshark could decrypt out plain text in good formation without any checksum/auth errors:

Mode/TYPE   AH  ESP 
Transport   x   x   
Tunnel      x   x   

ChangeLog
v2:
Rebase patchset against newest net-next.
Patch1: Remove adding rebundant empty line spotted by Sergei.
Patch2: Use only one dst pointing into itself to save space.

v3:
Align with David's requirement, that for user depends on orignal a553e4a6317b2cfc7659542c10fe43184ffe53da ("IPSEC support") from Jamal, their testbed configuration will not need to be changed.

Add Patch2/7, Patch3/7 for statistic counting, as well as fixing lock usage issue.

v4:
Add Patch8/8 to document IPsec usage in pktgen, both for orignal implementation and this enhancement, adviced by Jamal. And comment format fix spoted by Sergei.

v5:
Rebase this patchset on top of xfrm locks namespace support.

Fan Du (8):
{pktgen, xfrm} Correct xfrm state lock usage when transforming {pktgen, xfrm} Add statistics counting when transforming {pktgen, xfrm} Correct xfrm_state_lock usage in xfrm_stateonly_find {pktgen, xfrm} Using "pgset spi xxx" to spedifiy SA for a given flow {pktgen, xfrm} Construct skb dst for tunnel mode transformation {pktgen, xfrm} Introduce xfrm_state_lookup_byspi for pktgen {pktgen, xfrm} Show spi value properly when ipsec turned on {pktgen, xfrm} Document IPsec usage in pktgen.txt

 Documentation/networking/pktgen.txt |   15 +++++++
 include/net/xfrm.h                  |    2 +
 net/core/pktgen.c                   |   80 +++++++++++++++++++++++++++++------
 net/xfrm/xfrm_state.c               |   26 +++++++++++-
 4 files changed, 107 insertions(+), 16 deletions(-)
Signature · 1 line
1.7.9.5