mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
[IPSEC]: Remove nhoff from xfrm_input
The nhoff field isn't actually necessary in xfrm_input. For tunnel mode transforms we now throw away the output IP header so it makes no sense to fill in the nexthdr field. For transport mode we can now let the function transport_finish do the setting and it knows where the nexthdr field is. The only other thing that needs the nexthdr field to be set is the header extraction code. However, we can simply move the protocol extraction out of the generic header extraction. We want to minimise the amount of info we have to carry around between transforms as this simplifies the resumption process for async crypto. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
d26f398400
commit
60d5fcfb19
8 changed files with 16 additions and 15 deletions
|
|
@ -534,7 +534,6 @@ struct xfrm_spi_skb_cb {
|
|||
struct inet6_skb_parm h6;
|
||||
} header;
|
||||
|
||||
unsigned int nhoff;
|
||||
unsigned int daddroff;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue