Soft Patch Panel
 help / color / Atom feed
* [spp] Failed to init ring_latency_stats_info
@ 2019-09-11  6:46 Yasufumi Ogawa
  0 siblings, 0 replies; only message in thread
From: Yasufumi Ogawa @ 2019-09-11  6:46 UTC (permalink / raw)
  To: Hideyuki Yamashita, x-fn-spp; +Cc: dpdk-spp

Hi Hideyuki,

I have a problem in initializing SPP ringlatencystats. rte_zmalloc() in 
spp_ringlatencystats_init() returns NULL and process is terminated with 
log as below.

SPP_RING_LATENCY_STATS: Cannot allocate memory for ring latency stats info
SPP_VF: Exit spp_vf

I made some changes to this file for refactoring, but it might not 
related to the error from `git blame`. It is simply calling 
rte_zmalloc() with sizeof() and I cannot understand why error is happened.

spp_ringlatencystats_init(uint64_t samp_intvl, uint16_t stats_count)
	/* allocate memory for ring latency statistics information */
	g_stats_info = rte_zmalloc(
			"global ring_latency_stats_info",
			sizeof(struct ring_latency_stats_info) * stats_count,
	if (unlikely(g_stats_info == NULL)) {
		RTE_LOG(ERR, SPP_RING_LATENCY_STATS, "Cannot allocate memory "
				"for ring latency stats info\n");
		return SPPWK_RET_NG;

Although ringlatencystats is not activated by default and almost no one 
use, it should be fixed.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-11  6:46 [spp] Failed to init ring_latency_stats_info Yasufumi Ogawa

Soft Patch Panel

Archives are clonable:
	git clone --mirror spp/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 spp spp/ \
	public-inbox-index spp

Newsgroup available over NNTP:

AGPL code for this site: git clone public-inbox