Skip to content

Commit b565b44

Browse files
philmdjasowang
authored andcommitted
net/eth: Use correct in6_address offset in _eth_get_rss_ex_dst_addr()
The in6_address comes after the ip6_ext_hdr_routing header, not after the ip6_ext_hdr one. Fix the offset. Cc: qemu-stable@nongnu.org Reported-by: Stefano Garzarella <sgarzare@redhat.com> Fixes: eb70002 ("net_pkt: Extend packet abstraction as required by e1000e functionality") Reviewed-by: Miroslav Rezanina <mrezanin@redhat.com> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
1 parent 739128e commit b565b44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/eth.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ _eth_get_rss_ex_dst_addr(const struct iovec *pkt, int pkt_frags,
419419
}
420420

421421
bytes_read = iov_to_buf(pkt, pkt_frags,
422-
rthdr_offset + sizeof(*ext_hdr),
422+
rthdr_offset + sizeof(*rthdr),
423423
dst_addr, sizeof(*dst_addr));
424424

425425
return bytes_read == sizeof(*dst_addr);

0 commit comments

Comments
 (0)