diff options
author | Rahul Lakkireddy <rahul.lakkireddy@chelsio.com> | 2017-10-24 19:28:26 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-26 17:31:28 +0900 |
commit | acfdf7eabea4186a386ba5e656f0c739563cb1a5 (patch) | |
tree | 38da8217dc5a1c9c5f30ebe9d4117405a9d01bd2 /drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.h | |
parent | Merge branch 'hns3-fixes' (diff) | |
download | linux-dev-acfdf7eabea4186a386ba5e656f0c739563cb1a5.tar.xz linux-dev-acfdf7eabea4186a386ba5e656f0c739563cb1a5.zip |
cxgb4: fix overflow in collecting IBQ and OBQ dump
Destination buffer already has offset added. So, don't add offset
again.
Fetch actual size of configured OBQ from hardware, instead of using
hardcoded value.
Fixes: 7c075ce221cf ("cxgb4: collect IBQ and OBQ dumps")
Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.h')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.h b/drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.h index c4440c1d0142..df24c409c82f 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.h +++ b/drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.h @@ -100,4 +100,5 @@ int cudbg_collect_hma_indirect(struct cudbg_init *pdbg_init, struct cudbg_entity_hdr *cudbg_get_entity_hdr(void *outbuf, int i); void cudbg_align_debug_buffer(struct cudbg_buffer *dbg_buff, struct cudbg_entity_hdr *entity_hdr); +u32 cudbg_cim_obq_size(struct adapter *padap, int qid); #endif /* __CUDBG_LIB_H__ */ |