linux/drivers/net/ethernet/netronome/nfp
Jakub Kicinski 730b3ab54a 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>
2017-05-16 12:59:04 -04:00
..
nfpcore nfp: don't completely refuse to work with old flashes 2017-04-30 22:37:00 -04:00
Makefile nfp: add NSP routine to get static information 2017-04-24 14:35:44 -04:00
nfp_asm.h nfp: add BPF to NFP code translator 2016-09-21 19:50:02 -04:00
nfp_bpf_jit.c nfp: replace -ENOTSUPP with -EOPNOTSUPP 2017-04-30 22:37:00 -04:00
nfp_bpf_verifier.c nfp: add support for offload of XDP programs 2016-11-04 14:56:16 -04:00
nfp_bpf.h bitfield.h: add FIELD_FIT() helper 2017-02-10 15:52:24 -05:00
nfp_main.c nfp: add NSP routine to get static information 2017-04-24 14:35:44 -04:00
nfp_main.h nfp: add port state refresh 2017-04-05 10:49:12 -07:00
nfp_net_common.c nfp: eliminate an if statement in calculation of completed frames 2017-05-16 12:59:04 -04:00
nfp_net_ctrl.h nfp: add CHECKSUM_COMPLETE support 2017-05-16 12:59:03 -04:00
nfp_net_debugfs.c nfp: remove RX queue pointers 2017-03-22 12:59:09 -07:00
nfp_net_ethtool.c nfp: version independent support for chained RSS metadata 2017-05-16 12:59:03 -04:00
nfp_net_main.c nfp: remove the refresh of all ports optimization 2017-04-24 14:35:44 -04:00
nfp_net_offload.c nfp: replace -ENOTSUPP with -EOPNOTSUPP 2017-04-30 22:37:00 -04:00
nfp_net.h nfp: add a helper for wrapping descriptor index 2017-05-16 12:59:04 -04:00
nfp_netvf_main.c nfp: move control BAR pointer into data path structure 2017-03-12 23:43:17 -07:00