diff options
author | 2021-03-13 20:30:10 +0000 | |
---|---|---|
committer | 2021-03-14 14:41:08 -0700 | |
commit | 9dc2c313378528afe1bddf12cad88dbfe0998820 (patch) | |
tree | 6dd1af5981d2d20279da00850eff6602130fa693 /net/lapb/lapb_timer.c | |
parent | gro: simplify gro_list_prepare() (diff) | |
download | wireguard-linux-9dc2c313378528afe1bddf12cad88dbfe0998820.tar.xz wireguard-linux-9dc2c313378528afe1bddf12cad88dbfe0998820.zip |
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>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions