Skip to contentSkip to conversation

app/testpmd: initalize port_numa and ring_numa

PATCH Wu, Jingjing 2 participants 2 messages Apr 28, 2017 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 11 lines

-----Original Message-----
From: Pei, Yulong
Sent: Monday, April 24, 2017 3:16 PM
To: [email protected]
Cc: Richardson, Bruce <[email protected]>; Wu, Jingjing <[email protected]>; [email protected]; Pei, Yulong <[email protected]>
Subject: [PATCH] app/testpmd: initalize port_numa and ring_numa

Quoted 7 lines

Previous numa_support = 0 by default, it need to add --numa to testpmd command line to enable numa, so port_numa and ring_numa were initalized at function launch_args_parse(), now testpmd change numa_support = 1 as default, so port_numa and ring_numa also need to initalize by default, otherwise port->socket_id will be probed to wrong value.

Thanks!

Patch is fine. Could you add Fixes line for this patch? I think should be this commit?

commit 999b2ee0fe4511c44462b29566f264e8d9326e1b

Author: Bruce Richardson <[email protected]>
Date:   Fri Mar 24 17:00:38 2017 +0000

app/testpmd: enable NUMA support by default

There is little reason for NUMA support in testpmd to be off by default, so enable it, and add in a new commandline parameter to disable it, if that is wanted by users.

#2 lore raw

Hi Jingjing,

Thanks for the review, already sent v4 patch and fixes line in it.

Best Regards
Yulong Pei

-----Original Message-----
From: Wu, Jingjing
Sent: Friday, April 28, 2017 3:36 PM
To: Pei, Yulong <[email protected]>; [email protected]
Cc: Richardson, Bruce <[email protected]>; [email protected]
Subject: RE: [PATCH] app/testpmd: initalize port_numa and ring_numa

Quoted 9 lines

-----Original Message-----
From: Pei, Yulong
Sent: Monday, April 24, 2017 3:16 PM
To: [email protected]
Cc: Richardson, Bruce <[email protected]>; Wu, Jingjing <[email protected]>; [email protected]; Pei, Yulong <[email protected]>
Subject: [PATCH] app/testpmd: initalize port_numa and ring_numa

Quoted 7 lines

Previous numa_support = 0 by default, it need to add --numa to testpmd command line to enable numa, so port_numa and ring_numa were initalized at function launch_args_parse(), now testpmd change numa_support = 1 as default, so port_numa and ring_numa also need to initalize by default, otherwise port->socket_id will be probed to wrong value.

Thanks!

Patch is fine. Could you add Fixes line for this patch? I think should be this commit?

commit 999b2ee0fe4511c44462b29566f264e8d9326e1b

Author: Bruce Richardson <[email protected]>
Date:   Fri Mar 24 17:00:38 2017 +0000

app/testpmd: enable NUMA support by default

There is little reason for NUMA support in testpmd to be off by default, so enable it, and add in a new commandline parameter to disable it, if that is wanted by users.