diff options
| author | Thomas Falcon <[email protected]> | 2018-02-09 17:41:09 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2018-02-09 19:20:39 +0000 |
| commit | faefaa97215a0c05105d7ae180fe1a3b5979ad1f (patch) | |
| tree | 05ec5c9be1529f7b919e0ddb50c38160062dca7c /drivers/fpga/fpga-mgr.c | |
| parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf (diff) | |
| download | kernel-faefaa97215a0c05105d7ae180fe1a3b5979ad1f.tar.gz kernel-faefaa97215a0c05105d7ae180fe1a3b5979ad1f.zip | |
ibmvnic: Reset long term map ID counter
When allocating RX or TX buffer pools, the driver needs to provide a
unique mapping ID to firmware for each pool. This value is assigned
using a counter which is incremented after a new pool is created. The
ID can be an integer ranging from 1-255. When migrating to a device
that requests a different number of queues, this value was not being
reset properly. As a result, after enough migrations, the counter
exceeded the upper bound and pool creation failed. This is fixed by
resetting the counter to one in this case.
Signed-off-by: Thomas Falcon <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions
