Commit 6f793a1
net: netmem: fix skb_ensure_writable with unreadable skbs
skb_ensure_writable should succeed when it's trying to write to the
header of the unreadable skbs, so it doesn't need an unconditional
skb_frags_readable check. The preceding pskb_may_pull() call will
succeed if write_len is within the head and fail if we're trying to
write to the unreadable payload, so we don't need an additional check.
Removing this check restores DSCP functionality with unreadable skbs as
it's called from dscp_tg.
Cc: [email protected]
Cc: [email protected]
Fixes: 65249fe ("net: add support for skbs with unreadable frags")
Signed-off-by: Mina Almasry <[email protected]>
Acked-by: Stanislav Fomichev <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>1 parent 60524f1 commit 6f793a1
1 file changed
+0
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6261 | 6261 | | |
6262 | 6262 | | |
6263 | 6263 | | |
6264 | | - | |
6265 | | - | |
6266 | | - | |
6267 | 6264 | | |
6268 | 6265 | | |
6269 | 6266 | | |
| |||
0 commit comments