OSDN Git Service

net: thunderx: Set max queue count taking XDP_TX into account
authorSunil Goutham <sgoutham@cavium.com>
Fri, 24 Nov 2017 12:04:03 +0000 (15:04 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Nov 2017 14:24:07 +0000 (09:24 -0500)
commit87de083857aa269fb171ef0b39696b2888361c58
tree7ae36497516088c5cd1f834ba6c6c2d6677029f9
parentaa136d0c82fcd6af14535853c30e219e02b2692d
net: thunderx: Set max queue count taking XDP_TX into account

on T81 there are only 4 cores, hence setting max queue count to 4
would leave nothing for XDP_TX. This patch fixes this by doubling
max queue count in above scenarios.

Signed-off-by: Sunil Goutham <sgoutham@cavium.com>
Signed-off-by: cjacob <cjacob@caviumnetworks.com>
Signed-off-by: Aleksey Makarov <aleksey.makarov@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/nicvf_main.c