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 719B545688; Tue, 23 Jul 2024 04:07:55 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5FF65402C3; Tue, 23 Jul 2024 04:07:55 +0200 (CEST) Received: from smtp.cecloud.com (unknown [1.203.97.246]) by mails.dpdk.org (Postfix) with ESMTP id 3F5C440289 for ; Tue, 23 Jul 2024 04:07:53 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by smtp.cecloud.com (Postfix) with ESMTP id E34DF7C0116 for ; Tue, 23 Jul 2024 10:07:48 +0800 (CST) X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-SKE-CHECKED: 1 X-ABS-CHECKED: 1 X-ANTISPAM-LEVEL: 2 Received: from desktop-db736ns (unknown [39.156.73.9]) by smtp.cecloud.com (postfix) whith ESMTP id P2702681T281465002324336S1721700467285598_; Tue, 23 Jul 2024 10:07:47 +0800 (CST) X-IP-DOMAINF: 1 X-RL-SENDER: junwang01@cestc.cn X-SENDER: junwang01@cestc.cn X-LOGIN-NAME: junwang01@cestc.cn X-FST-TO: bruce.richardson@intel.com X-RCPT-COUNT: 3 X-LOCAL-RCPT-COUNT: 0 X-MUTI-DOMAIN-COUNT: 0 X-SENDER-IP: 39.156.73.9 X-ATTACHMENT-NUM: 0 X-UNIQUE-TAG: <547450bff8f5865ef37c7f7432e2513c> X-System-Flag: 0 Date: Tue, 23 Jul 2024 10:07:44 +0800 From: "Jun Wang" To: "Bruce Richardson" Cc: "Stephen Hemminger" , dev Subject: Re: [PATCH v1] net/e1000: do not update link status in secondary process References: <1720783847-12292-1-git-send-email-junwang01@cestc.cn>, <20240712101704.20e3f8a3@hermes.local>, <202407141626262115324@cestc.cn>, X-Priority: 3 X-GUID: 98201DA7-F46E-4CB6-A95D-26BD5D7C1AB8 X-Has-Attach: no X-Mailer: Foxmail 7, 1, 3, 52[cn] Mime-Version: 1.0 Message-ID: <2024072310074396805015@cestc.cn> Content-Type: multipart/alternative; boundary="----=_001_NextPart844172007521_=----" 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 This is a multi-part message in MIME format. ------=_001_NextPart844172007521_=---- Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: base64 SSB1c2VkIHRoZSBlMTAwMCBOSUMgd2l0aCBPVlMtRFBESyBhbmQgZXhwZXJpZW5jZWQgYSBmYWls dXJlIHdoZW4gdXNpbmcgdGhlIA0KL2RwZGsvYXBwL2RwZGstZHVtcGNhcCBjb21tYW5kIHRvIGNh cHR1cmUgcGFja2V0cy4gQWZ0ZXIgbWFraW5nIG1vZGlmaWNhdGlvbnMsIA0KaXQgd29ya2VkIGZp bmUuDQoNCi9kcGRrL2FwcC9kcGRrLWR1bXBjYXAgLWkgMDAwMDowMDowNC4wDQpGaWxlOiAvdG1w L2RwZGstZHVtcGNhcF8wXzAwMDA6MDA6MDQuMF8yMDI0MDcyMzAyMDIwMy5wY2FwbmcNClNlZ21l bnRhdGlvbiBmYXVsdCAoY29yZSBkdW1wZWQpDQoNCg0Kb3ZzLXZzY3RsIGxpc3Qgb3BlbiAuDQpf dXVpZCAgICAgICAgICAgICAgIDogODIyMjNkMDQtMGE2MC00NGZlLTgzYWMtMzk4YTAxYjBiY2Ez DQpicmlkZ2VzICAgICAgICAgICAgIDogWzhmMTg4NjIyLWMxN2QtNGQyMS1hZDMwLTIyYzMwODYw ZjA1MCwgY2E4ODI1NWUtNTRlNS00YjA2LWFhZmYtZmRkZTU1MDE4ZjM1XQ0KY3VyX2NmZyAgICAg ICAgICAgICA6IDE1DQpkYXRhcGF0aF90eXBlcyAgICAgIDogW25ldGRldiwgc3lzdGVtXQ0KZGF0 YXB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jc3VtX29mZmxvYWQ9ImZhbHNl IiwgdHhfc2N0cF9jc3VtX29mZmxvYWQ9ImZhbHNlIiwgdHhfdGNwX2NzdW1fb2ZmbG9hZD0idHJ1 ZSIsIHR4X3RjcF9zZWdfb2ZmbG9hZD0iZmFsc2UiLCB0eF91ZHBfY3N1bV9vZmZsb2FkPSJ0cnVl IiwgdHhfdnhsYW5fdHNvX29mZmxvYWQ9ImZhbHNlIn0NCg0KDQovdXNyL2xvY2FsL2Jpbi9kcGRr LWRldmJpbmQucHkgLS1zdGF0dXMNCg0KTmV0d29yayBkZXZpY2VzIHVzaW5nIERQREstY29tcGF0 aWJsZSBkcml2ZXINCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 DQowMDAwOjAwOjA0LjAgJzgyNTQwRU0gR2lnYWJpdCBFdGhlcm5ldCBDb250cm9sbGVyIDEwMGUn IGRydj11aW9fcGNpX2dlbmVyaWMgdW51c2VkPQ0KDQpOZXR3b3JrIGRldmljZXMgdXNpbmcga2Vy bmVsIGRyaXZlcg0KPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0NCjAwMDA6MDA6 MDMuMCAnODI1NDBFTSBHaWdhYml0IEV0aGVybmV0IENvbnRyb2xsZXIgMTAwZScgaWY9ZXRoMCBk cnY9ZTEwMDAgdW51c2VkPXVpb19wY2lfZ2VuZXJpYyAqQWN0aXZlKg0KDQoNCg0KDQpKdW4gV2Fu Zw== ------=_001_NextPart844172007521_=---- Content-Type: text/html; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable

I used the e1000 NIC with OVS-DPDK and experienced a failure when using= the=20

/dpdk/app/dpdk-dumpcap command to capture packets. After making=20 modifications,

it worked fine.

 
/dpdk/app/dpdk-dumpcap -i 0000:00:04.0
File: /tmp/dpdk-dumpcap_0_0000:00:04.0_20240723020203.pcapng
Segmentation fault (core dumped)
 
 
ovs-vsctl list open .
_uuid          &nbs= p;   =20 : 82223d04-0a60-44fe-83ac-398a01b0bca3
bridges          &n= bsp; =20 : [8f188622-c17d-4d21-ad30-22c30860f050,=20 ca88255e-54e5-4b06-aaff-fdde55018f35]
cur_cfg          &n= bsp; =20 : 15
datapath_types      : [netdev, system]
datapaths          = :=20 {netdev=3Dd801e891-7990-4f77-ae9a-c776ba4430a4,=20 system=3D25e5a761-3160-4ea1-adab-b4cddd8309e4}
db_version          :=20 "8.3.0"
dpdk_initialized    : true
dpdk_version        : "DPDK=20 23.11.0"
external_ids        :=20 {hostname=3Dcell1-xgw-dpdk, ovn-bridge-datapath-type=3Dnetdev,=20 ovn-bridge-mappings=3D"external:br-tun,share:br-tun,direct-connect:br-tun"= ,=20 ovn-encap-ip=3D"172.16.0.13", ovn-encap-tos=3Dinherit, ovn-encap-type=3Dge= neve,=20 ovn-remote=3D"tcp:[192.168.122.171]:6642", ovn-set-local-ip=3D"true",=20 rundir=3D"/var/run/openvswitch", system-id=3Dcell1-xgw-dpdk}
iface_types         : [bareud= p,=20 dpdk, dpdkvhostuser, dpdkvhostuserclient, erspan, geneve, gre, gtpu, inter= nal,=20 ip6erspan, ip6gre, lisp, patch, stt, system, tap, vxlan]
manager_options     : []
next_cfg          &= nbsp;=20 : 15
other_config        : {dpdk-extra= =3D" -a=20 0000:00:04.0" , dpdk-init=3D"true", pmd-perf-metrics=3D"false",=20 vlan-limit=3D"0"}
ovs_version         :=20 "2.17.5"
ssl           =      =20 : []
statistics          : {}=
system_type         : cclinux=
system_version      : "22.09.2"
 
 
status          &nb= sp;  =20 : {bus_info=3D"bus_name=3Dpci, vendor_id=3D8086, device_id=3D100e",=20 driver_name=3Dnet_e1000_em, if_descr=3D"DPDK 23.11.0 net_e1000_em", if_typ= e=3D"6",=20 link_speed=3D"1Gbps", max_hash_mac_addrs=3D"0", max_mac_addrs=3D"15",=20 max_rx_pktlen=3D"1518", max_rx_queues=3D"2", max_tx_queues=3D"2", max_vfs= =3D"0",=20 max_vmdq_pools=3D"0", min_rx_bufsize=3D"256", n_rxq=3D"1", n_txq=3D"2", nu= ma_id=3D"-1",=20 port_no=3D"0", rx-steering=3Drss, rx_csum_offload=3D"true",=20 tx_geneve_tso_offload=3D"false", tx_ip_csum_offload=3D"true",=20 tx_out_ip_csum_offload=3D"false", tx_out_udp_csum_offload=3D"false",=20 tx_sctp_csum_offload=3D"false", tx_tcp_csum_offload=3D"true",=20 tx_tcp_seg_offload=3D"false", tx_udp_csum_offload=3D"true",=20 tx_vxlan_tso_offload=3D"false"}
 
 
/usr/local/bin/dpdk-devbind.py --status
 
Network devices using DPDK-compatible driver
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
0000:00:04.0 '82540EM Gigabit Ethernet Controller 100e' drv=3Duio_pci= _generic=20 unused=3D
 
Network devices using kernel driver
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
0000:00:03.0 '82540EM Gigabit Ethernet Controller 100e' if=3Deth0 drv= =3De1000=20 unused=3Duio_pci_generic *Active*
 

Jun Wang
------=_001_NextPart844172007521_=------