packet: remove handling of tx_ring
Subsystems (2)
Hi Frans,
Quoted 11 lines
Quoted 3 lines
v1 = replace if()/BUG with
BUG_ON()fortx_ring.v2 =
I would keep this below the ---. There's little historical use for this version information when it gets merged.
Quoted 3 lines
remove handling of
tx_ringinprb_setup_retire_blk_timerforTPACKET_V3becauseinit_prb_bdqcis called only for NULLtx_ringand thusprb_setup_retire_blk_timerfor NULLtx_ringonly.
Quoted 6 lines
I'd say
tx_ringis false, rather than NULL. It's not a pointer (here).Quoted 1 line
And also in funciton
init_prb_bdqcthere is no usage oftx_ring.s,funciton,function,
Thanks for feedback , please check below changelog if it looks ok, Then i will share updated patch:-
v1 = replace if()/BUG with BUG_ON() for tx_ring.
---
Changes in v2:
Remove handling of tx_ring in prb_setup_retire_blk_timer for TPACKET_V3 because init_prb_bdqc is called only for zero tx_ring and thus prb_setup_retire_blk_timer for zero tx_ring only.
And also in functon init_prb_bdqc there is no usage of tx_ring. Thus removing tx_ring from init_prb_bdqc.
net/packet/af_packet.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-)
Thanks
Maninder
Hi,
Quoted 20 lines · Maninder Singh
Hi Frans,
Quoted 11 lines
Quoted 3 lines
v1 = replace if()/BUG with
BUG_ON()fortx_ring.v2 =
I would keep this below the ---. There's little historical use for this version information when it gets merged.
Quoted 3 lines
remove handling of
tx_ringinprb_setup_retire_blk_timerforTPACKET_V3becauseinit_prb_bdqcis called only for NULLtx_ringand thusprb_setup_retire_blk_timerfor NULLtx_ringonly.Quoted 6 lines
I'd say
tx_ringis false, rather than NULL. It's not a pointer (here).Quoted 1 line
And also in funciton
init_prb_bdqcthere is no usage oftx_ring.s,funciton,function,
Quoted 7 lines
Thanks for feedback , please check below changelog if it looks ok, Then i will share updated patch:-
v1 = replace if()/BUG with
BUG_ON()fortx_ring.Signed-off-by Maninder Singh <[email protected]>Signed-off-by Frans Klaver <[email protected]>
No, the Suggested-by: was better for me. You can't go about and add Signed-off-by lines for someone else without permission ;-).
Quoted 7 lines
---
Changes in v2:Remove handling of
tx_ringinprb_setup_retire_blk_timerforTPACKET_V3becauseinit_prb_bdqcis called only for zerotx_ringand thusprb_setup_retire_blk_timerfor zerotx_ringonly.
Quoted 8 lines
And also in functon
init_prb_bdqcthere is no usage oftx_ring. Thus removingtx_ringfrominit_prb_bdqc.net/packet/af_packet.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-)Thanks
Maninder
No, I didn't make myself clear enough, I'm afraid. The info about the different incarnations of your patch should go below the dashes. The whole "Remove handling ...." text should be your commit message, because that is what you want to see in the commit log. Here's an example:
Subject: [RFC PATCH v2] packet: remove handling of tx_ring
Remove handling of tx_ring in prb_setup_retire_blk_timer for TPACKET_V3 because init_prb_bdqc is called only for zero tx_ring and thus prb_setup_retire_blk_timer for zero tx_ring only.
And also in functon init_prb_bdqc there is no usage of tx_ring. Thus removing tx_ring from init_prb_bdqc.
---
v1..v2: remove BUG() by removing tx_path
diffstat & patch