From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70051.outbound.protection.outlook.com [40.107.7.51]) by dpdk.org (Postfix) with ESMTP id 454E02B94 for ; Thu, 29 Nov 2018 18:18:13 +0100 (CET) Received: from VI1PR01MB3710.eurprd01.prod.exchangelabs.com (20.176.1.143) by VI1PR01MB4639.eurprd01.prod.exchangelabs.com (20.178.10.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1361.14; Thu, 29 Nov 2018 17:18:11 +0000 Received: from VI1PR01MB3710.eurprd01.prod.exchangelabs.com ([fe80::ad16:a865:938e:67f8]) by VI1PR01MB3710.eurprd01.prod.exchangelabs.com ([fe80::ad16:a865:938e:67f8%5]) with mapi id 15.20.1361.019; Thu, 29 Nov 2018 17:18:11 +0000 From: Giner Arnaud To: "users@dpdk.org" Thread-Topic: Flow redirection to VF issue using Intel X710-T4 Thread-Index: AQHUh/pku2DNOYyJAUWreInAsBV9TA== Date: Thu, 29 Nov 2018 17:18:11 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=arnaud.giner@master.hes-so.ch; x-originating-ip: [160.98.166.103] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VI1PR01MB4639; 6:xidxktEUqCLfigq3pGf0sfrRrDJd83kTvniUWTNz7u/UJy0VynAimPwqSJm8d7CMMeeFemw1iQnXn1Jsr3K7jfoKqZ/o7YhBN5DPpsg5eOti2cuOtvJ3Z3dYHDz7YIcjC0QKmEkEO5TnIcb/gYIXrrVCIp5NshYX3l4Us4QJgySHp+205HiG1+g7NApKHaAFTzroKGosKIs4Mn+JiEkaHWX/zbupCGdhyAqiQW0A7GjZyMEwNrLu3s3M6xPIqNlGgapLqXCuqJzOAIjd7NIBjWhFwOG6hlZ3xatjDXDTQiElb7raik3Fyew+CEHWF3JEl96IKMEYZMHQo1ZGkP0UJwwjWp5JD5GB5IBis8BirjRIq5MhsvSR3053yNdE7TeBNsG80sF381khvJWpT+G2waEP8IXG4QaldwjZcln051euBn7k42cL2UZOyJMOb7jbX5jxczUig2hwLutQl+hLOA==; 5:JZNGmJs2OAikuW4gV/bRtVjn1K/ogzFeD2key/X5SPQFRx6eqeIaj9aTqgMXV6ftjzlpXPvBvHYqkgmvTch+Z2pn3RiYeT0HqWi5xkJt4eh3h826j5QOgRe8iSAnT9Lvh1Sw6hNAUrzjw7GrU/tYRj4eBycWlSc72KzJFJm+XmI=; 7:2oSEUaorDDPCnhpvFUhuk7yrkomxvXdoUl2yqu77Mui6DUswjO7+cSXJjnIPPZJMyHH/lxPZESAYKr4sXoOcXF1N6CRk27soBQx7eVrh9KuCvXyW1VRWaH3Ggj3c9I/DmTLHK1cankebm/VzZyC1JA== x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 883b07ef-e00c-4c3a-e230-08d6561ea390 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390098)(7020095)(4652040)(8989299)(5600074)(711020)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:VI1PR01MB4639; x-ms-traffictypediagnostic: VI1PR01MB4639: x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(3231453)(999002)(944501410)(52105112)(148016)(149066)(150057)(6041310)(20161123558120)(20161123564045)(201703131423095)(201702281529075)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(201708071742011)(7699051)(76991095); SRVR:VI1PR01MB4639; BCL:0; PCL:0; RULEID:; SRVR:VI1PR01MB4639; x-forefront-prvs: 0871917CDA x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(376002)(346002)(366004)(396003)(39840400004)(51874003)(199004)(189003)(4001150100001)(71190400001)(786003)(71200400001)(316002)(99286004)(186003)(6506007)(102836004)(575784001)(26005)(86362001)(7696005)(6606003)(6916009)(6436002)(33656002)(97736004)(19627405001)(486006)(2351001)(68736007)(105586002)(106356001)(476003)(25786009)(53936002)(3846002)(478600001)(2501003)(14454004)(6116002)(5640700003)(55016002)(74316002)(9686003)(54896002)(1730700003)(81156014)(8676002)(8936002)(81166006)(2906002)(66066001)(14444005)(256004)(5660300001)(74482002)(7736002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR01MB4639; H:VI1PR01MB3710.eurprd01.prod.exchangelabs.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:0; MX:1; received-spf: None (protection.outlook.com: master.hes-so.ch does not designate permitted sender hosts) x-microsoft-antispam-message-info: xhmDWcJ/Fr556yXFeh0wwXQH9rjie4DZ2uGiwYrD7C0khNRarvjBvYCRjZGxokEj+VwCOmxoXO6+W2wmoECEvdHDMkRy9JqTQLHcSuoWzijk0dQRIgzxOttUf7XuVE9hXkGpwCGAE2qsqCyV2h7OxP+wnJaYeFmQD9Hukb7xyw3Qj1G5e47FE33EcpMjxi7reViiimHPf9Gto5MKfJjNaxS5REaw4X+kzHDcuhmcCGBJsSp2onbIxaWZeobrDveTT7XkCI1EsAP8tfyHyjUNJpFXbJLocIumilE1UPPLv5lhjxlyMIzxSCQQ7rrrhMTIvfz79sp3eN148KlDaPzuc6K0WuYBAvA4DvxGg572n8w= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: master.hes-so.ch X-MS-Exchange-CrossTenant-Network-Message-Id: 883b07ef-e00c-4c3a-e230-08d6561ea390 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Nov 2018 17:18:11.0541 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a372f724-c0b2-4ea0-abfb-0eb8c6f84e40 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR01MB4639 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Flow redirection to VF issue using Intel X710-T4 X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Nov 2018 17:18:13 -0000 Hi, I am currently facing issues using SR-IOV and Flow Director on the Intel X7= 10-T4 . I'm trying to redirect traffic from my physical interface (PF) to m= y virtual interface (VF). My objective is to use bifurcated flow to share t= he device between the kernel and DPDK. As a starting point, I try to only redirect traffic using the standard driv= ers (i40e/i40evf) without involving DPDK components. As a packet generator,= I use pktgen-dpdk which is on a second PC. My setup: # lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 8 On-line CPU(s) list: 0-7 Thread(s) per core: 2 Core(s) per socket: 4 Socket(s): 1 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 58 Model name: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz Stepping: 9 CPU MHz: 1599.975 CPU max MHz: 3900.0000 CPU min MHz: 1600.0000 BogoMIPS: 6784.45 Virtualization: VT-x L1d cache: 32K L1i cache: 32K L2 cache: 256K L3 cache: 8192K NUMA node0 CPU(s): 0-7 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge= mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall= nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology no= nstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ss= se3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes = xsave avx f16c rdrand lahf_lm epb ibrs ibpb stibp kaiser tpr_shadow vnmi fl= expriority ept vpid fsgsbase smep erms xsaveopt dtherm ida arat pln pts # cat /proc/cmdline BOOT_IMAGE=3D/boot/vmlinuz-4.9.0-8-amd64 root=3DUUID=3Df21c49ed-800f-4b50-8= 023-28151f87e6a2 ro quiet hugepagesz=3D2M hugepages=3D1000 iommu=3Dpt pci= =3Dassign-busses NOTE: without pci=3Dassign-busses, I cannot create VF. Return 'Cannot alloc= ate memory' # uname -a Linux dpdk-openswitch 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x8= 6_64 GNU/Linux # ethtool -i enp1s0f0 | grep firmware firmware-version: 6.01 0x800034ad 1.1747.0 # modinfo i40e | grep version version: 2.7.12 # modinfo i40evf | grep version version: 3.6.10 # ip link show enp1s0f0 2: enp1s0f0: mtu 1500 qdisc mq st= ate UP mode DEFAULT group default qlen 1000 link/ether 3c:fd:fe:77:31:30 brd ff:ff:ff:ff:ff:ff vf 0 MAC 00:00:00:00:00:00, spoof checking on, link-state auto, trust o= n Configuration steps: // create vf # echo 1 > /sys/bus/pci/devices/0000\:01\:00.0/sriov_numvfs // redirect ipv4 with destination address 192.168.0.10 to VF0 # ethtool -N enp1s0f0 flow-type ip4 dst-ip 192.168.0.10 user-def 0xffffffff= 00000000 loc 0 // set trust, no sure if needed # ip link set enp1s0f0 vf 0 trust on // set physical interface to get all traffic # ifconfig enp1s0f0 promisc // set interfaces up # ifconfig enp1s0f0 up # ifconfig enp2s2 up Pktgen: # ./pktgen -c 0xf -n 4 -- -p 0xf -P -m "1.0" Pattern Type : abcd... Tx Count/% Rate : Forever /100% PktSize/Tx Burst : 64 / 64 Src/Dest Port : 1234 / 5678 Pkt Type:VLAN ID : IPv4 / TCP:0001 802.1p CoS : 0 ToS Value: : 0 - DSCP value : 0 - IPP value : 0 Dst IP Address : 192.168.0.10 Src IP Address : 192.168.0.1/24 Dst MAC Address : 00:00:00:00:00:00 Src MAC Address : 68:05:ca:89:a4:fa VendID/PCI Addr : 8086:10d3/01:00.0 Result: # ifconfig enp1s0f0 enp1s0f0: flags=3D4419 mtu 1500 ether 3c:fd:fe:77:31:30 txqueuelen 1000 (Ethernet) RX packets 2527519 bytes 151651140 (144.6 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 # ifconfig enp2s2 enp2s2: flags=3D4163 mtu 1500 ether 5e:7c:f7:6d:4c:1d txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 4 bytes 440 (440.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 I expect the PF (enp1s0f0) to redirect the received traffic to the VF (enp2= s2). Am I missing something or doing something wrong ? Thanks in advance, any help would be very welcome. Arnaud