提交 1a92b2de 编写于 作者: M Michael Holzheu 提交者: Martin Schwidefsky

s390/bpf: Fix sk_load_byte_msh()

In sk_load_byte_msh() sk_load_byte_slow() is called instead of
sk_load_byte_msh_slow(). Fix this and call the correct function.

Besides of this load only one byte instead of two and fix the comment.
Signed-off-by: NMichael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
上级 d86eb744
...@@ -106,11 +106,11 @@ sk_load_byte_slow: ...@@ -106,11 +106,11 @@ sk_load_byte_slow:
lgr %r2,%r9 # restore %r2 lgr %r2,%r9 # restore %r2
br %r8 br %r8
/* A = (*(u8 *)(skb->data+K) & 0xf) << 2 */ /* X = (*(u8 *)(skb->data+K) & 0xf) << 2 */
ENTRY(sk_load_byte_msh) ENTRY(sk_load_byte_msh)
llgfr %r1,%r3 # extend offset llgfr %r1,%r3 # extend offset
clr %r11,%r3 # hlen < offset ? clr %r11,%r3 # hlen < offset ?
jle sk_load_byte_slow jle sk_load_byte_msh_slow
lhi %r12,0 lhi %r12,0
ic %r12,0(%r1,%r10) # get byte from skb ic %r12,0(%r1,%r10) # get byte from skb
nill %r12,0x0f nill %r12,0x0f
...@@ -120,8 +120,8 @@ ENTRY(sk_load_byte_msh) ...@@ -120,8 +120,8 @@ ENTRY(sk_load_byte_msh)
sk_load_byte_msh_slow: sk_load_byte_msh_slow:
lgr %r9,%r2 # save %r2 lgr %r9,%r2 # save %r2
la %r4,162(%r15) # pointer to temp buffer la %r4,163(%r15) # pointer to temp buffer
lhi %r5,2 # 2 bytes lhi %r5,1 # 1 bytes
brasl %r14,skb_copy_bits # get data from skb brasl %r14,skb_copy_bits # get data from skb
xc 160(3,%r15),160(%r15) xc 160(3,%r15),160(%r15)
l %r12,160(%r15) # load result from temp buffer l %r12,160(%r15) # load result from temp buffer
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册