17 Apr 2012 10:41
[Openswan dev] RFC KLIPS patch for increased throughput on multicore systems
Jagdish Motwani <jagdish.motwani <at> elitecore.com>
2012-04-17 08:41:39 GMT
2012-04-17 08:41:39 GMT
Ref mail: KLIPS tdb_lock as rwlock instead of spinlock?
Please find attached klips patch for increased throughput of single
tunnel on multicore systems.
This patch is just a RFC and may have side effects. Please report them
by testing or code review.
In-order to get increased throughput,
1)Apply the patch
2)Use Receive Packet Steering to send packets of different
flows on different cpu's (/sys/class/net/eth0/queues/rx-0/rps_cpus)
Regrads,
Jagdish Motwani
Software Engineer
Elitecore Technologies Pvt. Ltd.
diff --git a/linux/include/openswan/ipsec_proto.h b/linux/include/openswan/ipsec_proto.h index f40336c..db21b92 100644 --- a/linux/include/openswan/ipsec_proto.h +++ b/linux/include/openswan/ipsec_proto.h <at> <at> -41,7 +41,7 <at> <at> extern struct prng ipsec_prng; /* ipsec_sa.c */ extern struct ipsec_sa *ipsec_sadb_hash[SADB_HASHMOD]; -extern spinlock_t tdb_lock; +extern rwlock_t tdb_lock; extern int ipsec_sadb_init(void);(Continue reading)
RSS Feed