mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 18:37:53 +07:00
staging: octeon-ethernet: disable load balance for receiving packet when CONFIG_RPS is enabled.
It's better disable load balance for receiving packet when CONFIG_RPS is enabled. If not, octeon-ethernet driver select CPU and then the rps select again CPU. It can be ipi interrupts overhead and packet reordering could be possible. Signed-off-by: Eunbong Song <eunb.song@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8369e382bd
commit
a6a39a7fcf
@ -286,6 +286,7 @@ static int cvm_oct_napi_poll(struct napi_struct *napi, int budget)
|
||||
did_work_request = 1;
|
||||
}
|
||||
|
||||
#ifndef CONFIG_RPS
|
||||
if (rx_count == 0) {
|
||||
/*
|
||||
* First time through, see if there is enough
|
||||
@ -300,6 +301,7 @@ static int cvm_oct_napi_poll(struct napi_struct *napi, int budget)
|
||||
if (backlog > budget * cores_in_use && napi != NULL)
|
||||
cvm_oct_enable_one_cpu();
|
||||
}
|
||||
#endif
|
||||
rx_count++;
|
||||
|
||||
skb_in_hw = USE_SKBUFFS_IN_HW && work->word2.s.bufs == 1;
|
||||
|
Loading…
Reference in New Issue
Block a user