Skip to content

Commit dbd8d3f

Browse files
philmdjasowang
authored andcommitted
net/eth: Better describe _eth_get_rss_ex_dst_addr's offset argument
The 'offset' argument represents the offset to the ip6_ext_hdr header, rename it as 'ext_hdr_offset'. Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Reviewed-by: Miroslav Rezanina <mrezanin@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
1 parent 3846244 commit dbd8d3f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

net/eth.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ eth_is_ip6_extension_header_type(uint8_t hdr_type)
401401

402402
static bool
403403
_eth_get_rss_ex_dst_addr(const struct iovec *pkt, int pkt_frags,
404-
size_t rthdr_offset,
404+
size_t ext_hdr_offset,
405405
struct ip6_ext_hdr *ext_hdr,
406406
struct in6_address *dst_addr)
407407
{
@@ -412,12 +412,12 @@ _eth_get_rss_ex_dst_addr(const struct iovec *pkt, int pkt_frags,
412412
size_t input_size = iov_size(pkt, pkt_frags);
413413
size_t bytes_read;
414414

415-
if (input_size < rthdr_offset + sizeof(*ext_hdr)) {
415+
if (input_size < ext_hdr_offset + sizeof(*ext_hdr)) {
416416
return false;
417417
}
418418

419419
bytes_read = iov_to_buf(pkt, pkt_frags,
420-
rthdr_offset + sizeof(*rthdr),
420+
ext_hdr_offset + sizeof(*rthdr),
421421
dst_addr, sizeof(*dst_addr));
422422

423423
return bytes_read == sizeof(*dst_addr);

0 commit comments

Comments
 (0)