aboutsummaryrefslogtreecommitdiff
path: root/net/ipv4/igmp.c
diff options
context:
space:
mode:
authorChristian Marangi <ansuelsmth@gmail.com>2023-10-12 11:14:29 +0200
committerDavid S. Miller <davem@davemloft.net>2023-10-16 09:09:54 +0100
commit101c6032031f4dba72b91e6c766e958a5e429622 (patch)
tree89d3e7a285b3c5a2bd67be0420fc557510abe2b3 /net/ipv4/igmp.c
parentc49bba011b51e44d45bbc279ef8f42d46f4b0700 (diff)
net: cxgb3: simplify logic for rspq_check_napi
Simplify logic for rspq_check_napi. Drop redundant and wrong napi_is_scheduled call as it's not race free and directly use the output of napi_schedule to understand if a napi is pending or not. rspq_check_napi main logic is to check if is_new_response is true and check if a napi is not scheduled. The result of this function is then used to detect if we are missing some interrupt and act on top of this... With this knowing, we can rework and simplify the logic and make it less problematic with testing an internal bit for napi. Suggested-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/igmp.c')
0 files changed, 0 insertions, 0 deletions