From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 47147A0546; Wed, 26 May 2021 10:23:51 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C983D40150; Wed, 26 May 2021 10:23:50 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 120A84003F for ; Wed, 26 May 2021 10:23:49 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id DB473A0547; Wed, 26 May 2021 10:23:48 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Wed, 26 May 2021 08:23:48 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: eventdev X-Bugzilla-Version: 20.11 X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: heng.wang@ericsson.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 Subject: [dpdk-dev] [Bug 721] Wrong event pointer in rx adapter X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" https://bugs.dpdk.org/show_bug.cgi?id=3D721 Bug ID: 721 Summary: Wrong event pointer in rx adapter Product: DPDK Version: 20.11 Hardware: All OS: All Status: UNCONFIRMED Severity: major Priority: Normal Component: eventdev Assignee: dev@dpdk.org Reporter: heng.wang@ericsson.com Target Milestone: --- Problem: In the function rxa_buffer_mbufs the ev is not reset to the array's first element before passing to a user call back function.=20 Workaround: In the user callback, we must decrement ev by number of event before we can= use it. Fix: I think we should pass &buf->events[buf->count] to dev_info->cb_fn instead = of ev. 773 for (i =3D 0; i < num; i++) { 774 m =3D mbufs[i]; 775 776 rss =3D do_rss ? 777 rxa_do_softrss(m, rx_adapter->rss_key_be) : 778 m->hash.rss; 779 ev->event =3D event; 780 ev->flow_id =3D (rss & ~flow_id_mask) | 781 (ev->flow_id & flow_id_mask); 782 ev->mbuf =3D m; 783 ev++; 784 } 785 786 if (dev_info->cb_fn) { 787 788 dropped =3D 0; 789 nb_cb =3D dev_info->cb_fn(eth_dev_id, rx_queue_id, 790 ETH_EVENT_BUFFER_SIZE, buf->co= unt, ev, 791 num, dev_info->cb_arg, &droppe= d); 792 if (unlikely(nb_cb > num)) 793 RTE_EDEV_LOG_ERR("Rx CB returned %d (> %d) events", 794 nb_cb, num); 795 else 796 num =3D nb_cb; 797 if (dropped) 798 rx_adapter->stats.rx_dropped +=3D dropped; 799 } --=20 You are receiving this mail because: You are the assignee for the bug.=