OSDN Git Service

net-gro: use ffs() to speedup napi_gro_flush()
authorEric Dumazet <edumazet@google.com>
Wed, 21 Nov 2018 19:39:28 +0000 (11:39 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Nov 2018 19:32:55 +0000 (11:32 -0800)
commit42519ede4fde2a50919215933e0f02c8342aba0f
tree17d661043dfc332ff0f8e515a6ea5cfacbcba1f9
parentd72ff4b4eaa21922218b28b8f44ed119d4a5e543
net-gro: use ffs() to speedup napi_gro_flush()

We very often have few flows/chains to look at, and we
might increase GRO_HASH_BUCKETS to 32 or 64 in the future.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c