I know disable_xfrm and disable_policy can be used to avoid IPsec
processing on packets hitting particular network interface.
But is there any way so that I can disable ipsec processing on per
policy/sa basis .
scenario is like my same interface is acting as endpoint for both
tunnel and transport modes but my requirement is to do ipsec
processing only on tunneled packets and avoid that for transport mode.
Our implementation is using these sysctl parameters(disable_policy and
disable_xfrm) , so I expect they will not be deprecated and removed in
near future releases.