Commit b6ccf61
xfrm: simplify SA initialization routine
SA replay mode is initialized differently for user-space and
kernel-space users, but the call to xfrm_init_replay() existed in
common path with boolean protection. That caused to situation where
we have two different function orders.
So let's rewrite the SA initialization flow to have same order for
both in-kernel and user-space callers.
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>1 parent 585b64f commit b6ccf61
3 files changed
Lines changed: 12 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1769 | 1769 | | |
1770 | 1770 | | |
1771 | 1771 | | |
1772 | | - | |
1773 | | - | |
| 1772 | + | |
1774 | 1773 | | |
1775 | 1774 | | |
1776 | 1775 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3120 | 3120 | | |
3121 | 3121 | | |
3122 | 3122 | | |
3123 | | - | |
3124 | | - | |
| 3123 | + | |
3125 | 3124 | | |
3126 | 3125 | | |
3127 | 3126 | | |
| |||
3188 | 3187 | | |
3189 | 3188 | | |
3190 | 3189 | | |
3191 | | - | |
3192 | | - | |
3193 | | - | |
3194 | | - | |
3195 | | - | |
3196 | | - | |
3197 | 3190 | | |
3198 | 3191 | | |
3199 | 3192 | | |
| |||
3225 | 3218 | | |
3226 | 3219 | | |
3227 | 3220 | | |
3228 | | - | |
3229 | | - | |
3230 | | - | |
| 3221 | + | |
| 3222 | + | |
| 3223 | + | |
3231 | 3224 | | |
3232 | | - | |
| 3225 | + | |
| 3226 | + | |
| 3227 | + | |
| 3228 | + | |
| 3229 | + | |
| 3230 | + | |
3233 | 3231 | | |
3234 | 3232 | | |
3235 | 3233 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
919 | 919 | | |
920 | 920 | | |
921 | 921 | | |
922 | | - | |
| 922 | + | |
923 | 923 | | |
924 | 924 | | |
925 | 925 | | |
| |||
0 commit comments