of c4iw_fill_res_qp_entry
Subsystems (2)
Hi,
One of my scripts noticed that c4iw_fill_res_qp_entry is not called
anywhere; It came from:
commit 5cc34116ccec60032dbaa92768f41e95ce2d8ec7
Author: Maor Gottlieb <[email protected]> Date: Tue Jun 23 14:30:38 2020 +0300
RDMA: Add dedicated QP resource tracker function
I was going to send a patch to deadcode it, but is it really a bug and it should be assigned in c4iw_dev_ops in cxgb4/provider.c ?
(Note I know nothing about the innards of your driver, I'm just spotting the unused function).
Thoughts?
Dave
Signature · 4 lines
-----Open up your eyes, open up your mind, open up your code ------- / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex / \ _________________________|_____ http://www.treblig.org |_______/
Quoted 8 lines · Dr. David Alan Gilbert
Hi,
One of my scripts noticed thatc4iw_fill_res_qp_entryis not called
anywhere; It came from:commit
5cc34116ccec60032dbaa92768f41e95ce2d8ec7Author: Maor Gottlieb <[email protected]> Date: Tue Jun 23 14:30:38 2020 +0300
Quoted 7 lines
RDMA: Add dedicated QP resource tracker function
I was going to send a patch to deadcode it, but is it really a bug and it should be assigned in
c4iw_dev_opsincxgb4/provider.c?(Note I know nothing about the innards of your driver, I'm just spotting the unused function).
It is a bug, something like that should be done.
drivers/infiniband/hw/cxgb4/provider.c +1 -0
@@ -473,6 +473,7 @@ static const struct ib_device_ops c4iw_dev_ops = { .fill_res_cq_entry = c4iw_fill_res_cq_entry, .fill_res_cm_id_entry = c4iw_fill_res_cm_id_entry, .fill_res_mr_entry = c4iw_fill_res_mr_entry, + .fill_res_qp_entry = c4iw_fill_res_qp_entry, .get_dev_fw_str = get_dev_fw_str, .get_dma_mr = c4iw_get_dma_mr, .get_hw_stats = c4iw_get_mib,
(END)
Quoted 10 lines
Thoughts?
Dave
Signature · 4 lines
-----Open up your eyes, open up your mind, open up your code ------- / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex / \ _________________________|_____ http://www.treblig.org |_______/
Quoted 9 lines · * Leon Romanovsky ([email protected]) wrote:
Quoted 8 lines · Dr. David Alan Gilbert
Hi,
One of my scripts noticed thatc4iw_fill_res_qp_entryis not called
anywhere; It came from:commit
5cc34116ccec60032dbaa92768f41e95ce2d8ec7Author: Maor Gottlieb <[email protected]> Date: Tue Jun 23 14:30:38 2020 +0300
Quoted 7 lines
Quoted 7 lines
RDMA: Add dedicated QP resource tracker function
I was going to send a patch to deadcode it, but is it really a bug and it should be assigned in
c4iw_dev_opsincxgb4/provider.c?(Note I know nothing about the innards of your driver, I'm just spotting the unused function).
Thanks for the reply,
Quoted 1 line
It is a bug, something like that should be done.
Ah good I spotted; out of curiosity, what would be the symptom?
I don't have the hardware to test this, can I suggest that you send that patch?
Dave
Quoted 26 lines
drivers/infiniband/hw/cxgb4/provider.c +1
-0@@ -473,6 +473,7 @@ static const struct ib_device_ops c4iw_dev_ops = { .fill_res_cq_entry = c4iw_fill_res_cq_entry, .fill_res_cm_id_entry = c4iw_fill_res_cm_id_entry, .fill_res_mr_entry = c4iw_fill_res_mr_entry, + .fill_res_qp_entry = c4iw_fill_res_qp_entry, .get_dev_fw_str = get_dev_fw_str, .get_dma_mr = c4iw_get_dma_mr, .get_hw_stats = c4iw_get_mib,(END)
Quoted 10 lines
Thoughts?
Dave
Signature · 4 lines
-----Open up your eyes, open up your mind, open up your code ------- / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex / \ _________________________|_____ http://www.treblig.org |_______/
Signature · 4 lines
-----Open up your eyes, open up your mind, open up your code ------- / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex / \ _________________________|_____ http://www.treblig.org |_______/
Quoted 15 lines · Dr. David Alan Gilbert
Quoted 14 lines · * Leon Romanovsky ([email protected]) wrote:
Quoted 13 lines · Dr. David Alan Gilbert
Hi,
One of my scripts noticed thatc4iw_fill_res_qp_entryis not called
anywhere; It came from:commit
5cc34116ccec60032dbaa92768f41e95ce2d8ec7Author: Maor Gottlieb <[email protected]> Date: Tue Jun 23 14:30:38 2020 +0300RDMA: Add dedicated QP resource tracker function
I was going to send a patch to deadcode it, but is it really a bug and it should be assigned in
c4iw_dev_opsincxgb4/provider.c?
Quoted 8 lines
Quoted 2 lines
Quoted 2 lines
(Note I know nothing about the innards of your driver, I'm just spotting the unused function).
Thanks for the reply,
Quoted 1 line
It is a bug, something like that should be done.
Ah good I spotted; out of curiosity, what would be the symptom?
User will run "rdma resource show qp -d" and won't get any vendor specific information.
Quoted 2 lines
I don't have the hardware to test this, can I suggest that you send that patch?
Sure, will do.
Quoted 34 lines
Dave
Quoted 26 lines
drivers/infiniband/hw/cxgb4/provider.c +1
-0@@ -473,6 +473,7 @@ static const struct ib_device_ops c4iw_dev_ops = { .fill_res_cq_entry = c4iw_fill_res_cq_entry, .fill_res_cm_id_entry = c4iw_fill_res_cm_id_entry, .fill_res_mr_entry = c4iw_fill_res_mr_entry, + .fill_res_qp_entry = c4iw_fill_res_qp_entry, .get_dev_fw_str = get_dev_fw_str, .get_dma_mr = c4iw_get_dma_mr, .get_hw_stats = c4iw_get_mib,(END)
Quoted 10 lines
Thoughts?
Dave
Signature · 4 lines
-----Open up your eyes, open up your mind, open up your code ------- / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex / \ _________________________|_____ http://www.treblig.org |_______/Signature · 4 lines
-----Open up your eyes, open up your mind, open up your code ------- / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex / \ _________________________|_____ http://www.treblig.org |_______/
Quoted 19 lines · * Leon Romanovsky ([email protected]) wrote:
Quoted 18 lines · Dr. David Alan Gilbert
Quoted 16 lines · * Leon Romanovsky ([email protected]) wrote:
Quoted 15 lines · Dr. David Alan Gilbert
Hi,
One of my scripts noticed thatc4iw_fill_res_qp_entryis not called
anywhere; It came from:commit
5cc34116ccec60032dbaa92768f41e95ce2d8ec7Author: Maor Gottlieb <[email protected]> Date: Tue Jun 23 14:30:38 2020 +0300RDMA: Add dedicated QP resource tracker function
I was going to send a patch to deadcode it, but is it really a bug and it should be assigned in
c4iw_dev_opsincxgb4/provider.c?(Note I know nothing about the innards of your driver, I'm just spotting the unused function).
Quoted 8 lines
Quoted 5 lines
Thanks for the reply,
Quoted 1 line
It is a bug, something like that should be done.
Ah good I spotted; out of curiosity, what would be the symptom?
User will run "rdma resource show qp -d" and won't get any vendor specific information.
Oh OK, not terrible.
Quoted 4 lines
Quoted 2 lines
I don't have the hardware to test this, can I suggest that you send that patch?
Sure, will do.
Thanks!
Dave
Quoted 35 lines
Quoted 34 lines
Dave
Quoted 26 lines
drivers/infiniband/hw/cxgb4/provider.c +1
-0@@ -473,6 +473,7 @@ static const struct ib_device_ops c4iw_dev_ops = { .fill_res_cq_entry = c4iw_fill_res_cq_entry, .fill_res_cm_id_entry = c4iw_fill_res_cm_id_entry, .fill_res_mr_entry = c4iw_fill_res_mr_entry, + .fill_res_qp_entry = c4iw_fill_res_qp_entry, .get_dev_fw_str = get_dev_fw_str, .get_dma_mr = c4iw_get_dma_mr, .get_hw_stats = c4iw_get_mib,(END)
Quoted 10 lines
Thoughts?
Dave
Signature · 4 lines
-----Open up your eyes, open up your mind, open up your code ------- / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex / \ _________________________|_____ http://www.treblig.org |_______/Signature · 4 lines
-----Open up your eyes, open up your mind, open up your code ------- / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex / \ _________________________|_____ http://www.treblig.org |_______/
Signature · 4 lines
-----Open up your eyes, open up your mind, open up your code ------- / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex / \ _________________________|_____ http://www.treblig.org |_______/