aboutsummaryrefslogtreecommitdiff
path: root/net/ipv4/tcp_output.c
diff options
context:
space:
mode:
authorJakub Kicinski <jakub.kicinski@netronome.com>2017-05-15 17:55:23 -0700
committerDavid S. Miller <davem@davemloft.net>2017-05-16 12:59:04 -0400
commit730b3ab54af4f816cdf541a23c879c9379a480db (patch)
treed82997a70b766e41ee5a61be0eda23d1d0a905db /net/ipv4/tcp_output.c
parent4aa3b7660aa79bb030aaa887dc16a60e02fa4348 (diff)
downloadlinux-730b3ab54af4f816cdf541a23c879c9379a480db.tar.gz
linux-730b3ab54af4f816cdf541a23c879c9379a480db.tar.bz2
linux-730b3ab54af4f816cdf541a23c879c9379a480db.zip
nfp: eliminate an if statement in calculation of completed frames
Given that our rings are always a power of 2, we can simplify the calculation of number of completed TX descriptors by using masking instead of if statement based on whether the index have wrapped or not. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: Simon Horman <simon.horman@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions