Commit d86eb744 authored by Michael Holzheu's avatar Michael Holzheu Committed by Martin Schwidefsky

s390/bpf: Fix offset parameter for skb_copy_bits()

Currently the offset parameter for skb_copy_bits is changed in
sk_load_word() and sk_load_half(). Therefore it is not correct when
calling skb_copy_bits(). Fix this and use the original offset
for the function call.
Signed-off-by: default avatarMichael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent db9aa8f4
...@@ -44,6 +44,7 @@ ENTRY(sk_load_word) ...@@ -44,6 +44,7 @@ ENTRY(sk_load_word)
sk_load_word_slow: sk_load_word_slow:
lgr %r9,%r2 # save %r2 lgr %r9,%r2 # save %r2
lgr %r3,%r1 # offset
la %r4,160(%r15) # pointer to temp buffer la %r4,160(%r15) # pointer to temp buffer
lhi %r5,4 # 4 bytes lhi %r5,4 # 4 bytes
brasl %r14,skb_copy_bits # get data from skb brasl %r14,skb_copy_bits # get data from skb
...@@ -69,6 +70,7 @@ ENTRY(sk_load_half) ...@@ -69,6 +70,7 @@ ENTRY(sk_load_half)
sk_load_half_slow: sk_load_half_slow:
lgr %r9,%r2 # save %r2 lgr %r9,%r2 # save %r2
lgr %r3,%r1 # offset
la %r4,162(%r15) # pointer to temp buffer la %r4,162(%r15) # pointer to temp buffer
lhi %r5,2 # 2 bytes lhi %r5,2 # 2 bytes
brasl %r14,skb_copy_bits # get data from skb brasl %r14,skb_copy_bits # get data from skb
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment