# Re: \[RFC 2.6.10 1/22\] xfrm: Add direction information to xfrm\_state

- From: David S. Miller \<davem@davemloft.net\>
- Date: 2005-01-26 06:17:26 
- List: netdev
- Page: https://ratatoskr.run/netdev/2005/01/10748557
- Thread: https://ratatoskr.run/netdev/2004/12/698207/t.md

```text
On Sat, 22 Jan 2005 00:50:22 -0500
David Dillow [ref] wrote:

> Hmm, I can see having netdev->xfrm_bundle_add() assume a outbound state,
> since it's only called for Tx.
> 
> Rx offloading could be interesting, but it looks like I could hook into
> net/xfrm/xfrm_policy.c:__xfrm_policy_check(), and add the xfrm_states
> seen there to a work queue for offloading. netdev->xfrm_state_add()
> would then only see inbound states.
> 
> Sound sane?

You really can't get at the policies at these places somehow?
Even by passing down the xfrm_policy pointer into these
call chains?

If you could get at the xfrm_policy, then you could get the
direction.
```
