From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx3.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) by mail.toke.dk (Postfix) with ESMTPS id A6FAD9E9654 for ; Tue, 14 Feb 2023 16:00:53 +0100 (CET) Received: from [141.14.220.45] (g45.guest.molgen.mpg.de [141.14.220.45]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id AA34F60027FD9; Tue, 14 Feb 2023 16:00:52 +0100 (CET) Message-ID: <6a5ded96-2425-ff9b-c1b1-eca1c103164c@molgen.mpg.de> Date: Tue, 14 Feb 2023 16:00:52 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.2 Content-Language: en-US To: Jesper Dangaard Brouer References: <167604167956.1726972.7266620647404438534.stgit@firesoul> From: Paul Menzel In-Reply-To: <167604167956.1726972.7266620647404438534.stgit@firesoul> Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Transfer-Encoding: base64 Message-ID-Hash: QP7L4TMMC4L4ZMESXAG25R4JBJW2TWMV X-Message-ID-Hash: QP7L4TMMC4L4ZMESXAG25R4JBJW2TWMV X-MailFrom: pmenzel@molgen.mpg.de X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: bpf@vger.kernel.org, xdp-hints@xdp-project.net, martin.lau@kernel.org, daniel@iogearbox.net, netdev@vger.kernel.org, ast@kernel.org, Stanislav Fomichev , yoong.siang.song@intel.com, anthony.l.nguyen@intel.com, intel-wired-lan@lists.osuosl.org X-Mailman-Version: 3.3.8 Precedence: list Subject: [xdp-hints] Re: [Intel-wired-lan] [PATCH bpf-next V1] igc: enable and fix RX hash usage by netstack List-Id: XDP hardware hints design discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: RGVhciBKZXNwZXIsDQoNCg0KVGhhbmsgeW91IHZlcnkgbXVjaCBmb3IgeW91ciBwYXRjaC4NCg0K QW0gMTAuMDIuMjMgdW0gMTY6MDcgc2NocmllYiBKZXNwZXIgRGFuZ2FhcmQgQnJvdWVyOg0KPiBX aGVuIGZ1bmN0aW9uIGlnY19yeF9oYXNoKCkgd2FzIGludHJvZHVjZWQgaW4gdjQuMjAgdmlhIGNv bW1pdCAwNTA3ZWY4YTAzNzINCj4gKCJpZ2M6IEFkZCB0cmFuc21pdCBhbmQgcmVjZWl2ZSBmYXN0 cGF0aCBhbmQgaW50ZXJydXB0IGhhbmRsZXJzIiksIHRoZQ0KPiBoYXJkd2FyZSB3YXNuJ3QgY29u ZmlndXJlZCB0byBwcm92aWRlIFJTUyBoYXNoLCB0aHVzIGl0IG1hZGUgc2Vuc2UgdG8gbm90DQo+ IGVuYWJsZSBuZXRfZGV2aWNlIE5FVElGX0ZfUlhIQVNIIGZlYXR1cmUgYml0Lg0KPiANCj4gVGhl IE5JQyBoYXJkd2FyZSB3YXMgY29uZmlndXJlZCB0byBlbmFibGUgUlNTIGhhc2ggaW5mbyBpbiB2 NS4yIHZpYSBjb21taXQNCj4gMjEyMWMyNzEyZjgyICgiaWdjOiBBZGQgbXVsdGlwbGUgcmVjZWl2 ZSBxdWV1ZXMgY29udHJvbCBzdXBwb3J0aW5nIiksIGJ1dA0KPiBmb3Jnb3QgdG8gc2V0IHRoZSBO RVRJRl9GX1JYSEFTSCBmZWF0dXJlIGJpdC4NCj4gDQo+IFRoZSBvcmlnaW5hbCBpbXBsZW1lbnRh dGlvbiBvZiBpZ2NfcnhfaGFzaCgpIGRpZG4ndCBleHRyYWN0IHRoZSBhc3NvY2lhdGVkDQo+IHBr dF9oYXNoX3R5cGUsIGJ1dCBzdGF0aWNhbGx5IHNldCB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