gro: consistentify napi->gro_hash[x] access in dev_gro_receive()
authorAlexander Lobakin <alobakin@pm.me>
Sat, 13 Mar 2021 20:30:10 +0000 (20:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 14 Mar 2021 21:41:08 +0000 (14:41 -0700)
commit9dc2c313378528afe1bddf12cad88dbfe0998820
tree6dd1af5981d2d20279da00850eff6602130fa693
parent0ccf4d50d14f360dfae5b25b8ffcb27f98e591f0
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: Alexander Lobakin <alobakin@pm.me>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c