DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] Segmentation fault with -msse3
@ 2021-03-04 16:57 nicolas.neel
  2021-03-04 17:27 ` Das, Surajit
  0 siblings, 1 reply; 4+ messages in thread
From: nicolas.neel @ 2021-03-04 16:57 UTC (permalink / raw)
  To: users

Hello dpdk users, 


I'm a newbie to dpdk and I try to get the list of the rss hash functions for
a given port with the following code : 


static uint64_t get_rss_function(int port_id){

                int ret;

                struct rte_eth_rss_conf rss_conf;


                ret = rte_eth_dev_rss_hash_conf_get(port_id,&rss_conf);

                if(ret < 0){

                               printf("No supported rss\n");

                               return 0;


                return rss_conf.rss_hf;



I use dpdk version 20.11 and my code is compiled with the following flags (I
'm following the tips of the doc) : 

CXXFLAGS += -mssse3 -mfma -mcx16 -msse4.1 -msse4.2 -mpopcnt -mavx -mavx2


I have a segmentation fault calling ret =
rte_eth_dev_rss_hash_conf_get(port_id,&rss_conf) ; and the coredump tell an
issue with __memcpy_ssse3().


If I remove the -mssse3 I don't have the crash.


Can you help me to identify the reason of the segmentation fault and tell me
if I can easily remove the < -mssse3 > flag ?


(Sorry for my english)



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-03-05 12:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-04 16:57 [dpdk-users] Segmentation fault with -msse3 nicolas.neel
2021-03-04 17:27 ` Das, Surajit
2021-03-05 11:25   ` nicolas.neel
2021-03-05 12:38     ` Das, Surajit

DPDK usage discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/users/0 users/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 users users/ https://inbox.dpdk.org/users \
	public-inbox-index users

Example config snippet for mirrors.
Newsgroup available over NNTP:

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git