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 2E4CD4383C; Fri, 5 Jan 2024 14:44:34 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 01B01402E7; Fri, 5 Jan 2024 14:44:34 +0100 (CET) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 96AAA402AC for ; Fri, 5 Jan 2024 14:44:32 +0100 (CET) Received: by inbox.dpdk.org (Postfix, from userid 33) id 8CBEA4383E; Fri, 5 Jan 2024 14:44:32 +0100 (CET) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [Bug 1343] net/i40e does not drop packet with too many segments Date: Fri, 05 Jan 2024 13:44:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: ethdev X-Bugzilla-Version: 23.11 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: andrew.rybchenko@oktetlabs.ru 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: multipart/alternative; boundary=17044622720.f63a86D.4174975 Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 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 --17044622720.f63a86D.4174975 Date: Fri, 5 Jan 2024 14:44:32 +0100 MIME-Version: 1.0 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 https://bugs.dpdk.org/show_bug.cgi?id=3D1343 Bug ID: 1343 Summary: net/i40e does not drop packet with too many segments Product: DPDK Version: 23.11 Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: ethdev Assignee: dev@dpdk.org Reporter: andrew.rybchenko@oktetlabs.ru Target Milestone: --- net/i40e does not drop packet with too many segments The test case is a bit artificial, but still makes sense. If application se= nt packet with too many segments which do not fit in Tx ring (or free space in= Tx ring) the packet is reported as sent anyway. The packet is not counted as sent in stats or output errors. The following errors appear in logs: i40e_dev_alarm_handler(): ICR0: malicious programming detected i40e_handle_mdd_event(): Malicious Driver Detection event 0x02 on TX queue = 1 PF number 0x00 VF number 0x00 device 0000:01:00.0 Should be repeatable with testpmd which allows to sent packet with many segments. E.g. setup Tx queue with 64 descriptors and try to send packet wi= th 65 segments. IMHO right behaviour in this case is to report the packet as transmitted in= Tx burst return value, but drop and count it in oerrors. (Otherwise Tx could stuck). Test logs (run at UHN IOL): https://ts-factory.io/bublik/v2/log/362398?focusId=3D368819&mode=3DtreeAndi= nfoAndlog&experimental=3Dtrue&lineNumber=3D1_60 Mentioned error appear in logs with delay (in the next test): https://ts-factory.io/bublik/v2/log/362398?focusId=3D368820&mode=3DtreeAndi= nfoAndlog&experimental=3Dtrue&lineNumber=3D1_32 --=20 You are receiving this mail because: You are the assignee for the bug.= --17044622720.f63a86D.4174975 Date: Fri, 5 Jan 2024 14:44:32 +0100 MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All
Bug ID 1343
Summary net/i40e does not drop packet with too many segments
Product DPDK
Version 23.11
Hardware All
OS All
Status UNCONFIRMED
Severity normal
Priority Normal
Component ethdev
Assignee dev@dpdk.org
Reporter andrew.rybchenko@oktetlabs.ru
Target Milestone ---

net/i40e does not drop packet with=
 too many segments

The test case is a bit artificial, but still makes sense. If application se=
nt
packet with too many segments which do not fit in Tx ring (or free space in=
 Tx
ring) the packet is reported as sent anyway.

The packet is not counted as sent in stats or output errors.

The following errors appear in logs:
i40e_dev_alarm_handler(): ICR0: malicious programming detected
i40e_handle_mdd_event(): Malicious Driver Detection event 0x02 on TX queue =
1 PF
number 0x00 VF number 0x00
 device 0000:01:00.0

Should be repeatable with testpmd which allows to sent packet with many
segments. E.g. setup Tx queue with 64 descriptors and try to send packet wi=
th
65 segments.

IMHO right behaviour in this case is to report the packet as transmitted in=
 Tx
burst return value, but drop and count it in oerrors. (Otherwise Tx could
stuck).

Test logs (run at UHN IOL):
htt=
ps://ts-factory.io/bublik/v2/log/362398?focusId=3D368819&mode=3DtreeAnd=
infoAndlog&experimental=3Dtrue&lineNumber=3D1_60

Mentioned error appear in logs with delay (in the next test):
htt=
ps://ts-factory.io/bublik/v2/log/362398?focusId=3D368820&mode=3DtreeAnd=
infoAndlog&experimental=3Dtrue&lineNumber=3D1_32
          


You are receiving this mail because:
  • You are the assignee for the bug.
=20=20=20=20=20=20=20=20=20=20
= --17044622720.f63a86D.4174975--