DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] share a table
@ 2016-03-13  2:55 张伟
  0 siblings, 0 replies; only message in thread
From: 张伟 @ 2016-03-13  2:55 UTC (permalink / raw)
  To: dev

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=GBK, Size: 941 bytes --]

Hi all, 


Now I use the DPDK multiple process example : client -server. I want the server create a hash table, then share it to client.  Currently what I do is to create_hash_table function returns a pointer which points to the flow table (inside the create_hash_table function, I use rte_calloc function allocates the space for the flow table and entries). I use memzone stores the table address, then client maps the memzone can find the table address. But this method does not work. When I access the flow table, it will have a segment fault problem.  Does anybody know what will be a good way which can allow the server create a hash table share to the client? Any suggestion will be appreciated. \x16º&¶\x1a&jɨž6¥¢~°Šw\¢d®œÆ«×}uӝöÛMzEën®sÚ¶^[a¢f¬š‰ãjZ'ë\b§uÊ&Eç\x1eŠ÷~º&™¨¥Âm\x1fçx(¢	^r‰¦j)p›GùÞ
(‚Wœ¢nø×n|۝ÛÉÚ]’Šà>‹-~,pŠØDHÄω޻\x03®7×Þ_¢·^½Ú]’ŠàJéõÜÆ«ÛMz×]9ßo´×M\x02\x114^qè¯yÖò™¨¥Âm\x1fçx(¢	^r‰°ŠØR13âv}|êÊ;ÓÏw÷­pš}_¢·^½Ú]’ŠàJéõÜÆ«ÛMzÓ}9ßm;ÓCÃL2ˆ1( «n­ë

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

only message in thread, other threads:[~2016-03-13  2:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-13  2:55 [dpdk-dev] share a table 张伟

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).