Commit 6be051c
net/tls: use the new scatterwalk functions
Replace calls to the deprecated function scatterwalk_copychunks() with
memcpy_from_scatterwalk(), memcpy_to_scatterwalk(), or
scatterwalk_skip() as appropriate. The new functions generally behave
more as expected and eliminate the need to call scatterwalk_done() or
scatterwalk_pagedone().
However, the new functions intentionally do not advance to the next sg
entry right away, which would have broken chain_to_walk() which is
accessing the fields of struct scatter_walk directly. To avoid this,
replace chain_to_walk() with scatterwalk_get_sglist() which supports the
needed functionality.
Cc: Boris Pismenny <borisp@nvidia.com>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>1 parent fd7cbef commit 6be051c
1 file changed
+6
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | 40 | | |
52 | 41 | | |
53 | 42 | | |
| |||
69 | 58 | | |
70 | 59 | | |
71 | 60 | | |
72 | | - | |
73 | | - | |
| 61 | + | |
| 62 | + | |
74 | 63 | | |
75 | 64 | | |
76 | 65 | | |
77 | 66 | | |
78 | 67 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | 68 | | |
83 | 69 | | |
84 | 70 | | |
| |||
90 | 76 | | |
91 | 77 | | |
92 | 78 | | |
93 | | - | |
94 | | - | |
| 79 | + | |
| 80 | + | |
95 | 81 | | |
96 | 82 | | |
97 | 83 | | |
| |||
110 | 96 | | |
111 | 97 | | |
112 | 98 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
| 99 | + | |
| 100 | + | |
117 | 101 | | |
118 | 102 | | |
119 | 103 | | |
| |||
162 | 146 | | |
163 | 147 | | |
164 | 148 | | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | 149 | | |
169 | 150 | | |
170 | 151 | | |
| |||
0 commit comments