Skip to content
Commit 9dc2c313 authored by Alexander Lobakin's avatar Alexander Lobakin Committed by David S. Miller
Browse files

gro: consistentify napi->gro_hash[x] access in dev_gro_receive()



GRO bucket index doesn't change through the entire function.
Store a pointer to the corresponding bucket instead of its member
and use it consistently through the function.
It is performance-safe since &gro_list->list == gro_list.

Misc: remove superfluous braces around single-line branches.

Signed-off-by: default avatarAlexander Lobakin <alobakin@pm.me>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0ccf4d50
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