linux/drivers/staging/qlge
Benjamin Poirier 6e9c52b920 staging: qlge: Refill rx buffers up to multiple of 16
Reading the {s,l}bq_prod_idx registers on a running device, it appears that
the adapter will only use buffers up to prod_idx & 0xfff0. The driver
currently uses fixed-size guard zones (16 for sbq, 32 for lbq - don't know
why this difference). After the previous patch, this approach no longer
guarantees prod_idx values aligned on multiples of 16. While it appears
that we can write unaligned values to prod_idx without ill effects on
device operation, it makes more sense to change qlge_refill_bq() to refill
up to a limit that corresponds with the device's behavior.

Signed-off-by: Benjamin Poirier <bpoirier@suse.com>
Link: https://lore.kernel.org/r/20190927101210.23856-17-bpoirier@suse.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-10-04 17:17:47 +02:00
..
Kconfig
Makefile
qlge_dbg.c staging: qlge: Update buffer queue prod index despite oom 2019-10-04 17:17:47 +02:00
qlge_ethtool.c
qlge_main.c staging: qlge: Refill rx buffers up to multiple of 16 2019-10-04 17:17:47 +02:00
qlge_mpi.c staging: qlge: Remove irq_cnt 2019-10-04 17:17:44 +02:00
qlge.h staging: qlge: Refill rx buffers up to multiple of 16 2019-10-04 17:17:47 +02:00
TODO