Skip to content

Commit a4e1866

Browse files
mfijalkoborkmann
authored andcommitted
ice: Remove likely for napi_complete_done
Remove the likely before napi_complete_done as this is the unlikely case when busy-poll is used. Removing this has a positive performance impact for busy-poll and no negative impact to the regular case. Signed-off-by: Maciej Fijalkowski <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Reviewed-by: Alexander Lobakin <[email protected]> Acked-by: Magnus Karlsson <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 8033c6c commit a4e1866

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/intel/ice/ice_txrx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1513,7 +1513,7 @@ int ice_napi_poll(struct napi_struct *napi, int budget)
15131513
/* Exit the polling mode, but don't re-enable interrupts if stack might
15141514
* poll us due to busy-polling
15151515
*/
1516-
if (likely(napi_complete_done(napi, work_done))) {
1516+
if (napi_complete_done(napi, work_done)) {
15171517
ice_net_dim(q_vector);
15181518
ice_enable_interrupt(q_vector);
15191519
} else {

0 commit comments

Comments
 (0)