From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mail.toke.dk (Postfix) with ESMTPS id E270B86C987 for ; Tue, 3 Aug 2021 03:03:52 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10064"; a="211691852" X-IronPort-AV: E=Sophos;i="5.84,290,1620716400"; d="scan'208";a="211691852" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Aug 2021 18:03:48 -0700 X-IronPort-AV: E=Sophos;i="5.84,290,1620716400"; d="scan'208";a="419480104" Received: from ticela-or-032.amr.corp.intel.com (HELO localhost.localdomain) ([10.212.166.34]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Aug 2021 18:03:48 -0700 From: Ederson de Souza To: xdp-hints@xdp-project.net Subject: [[RFC xdp-hints] 00/16] XDP hints and AF_XDP support Date: Mon, 2 Aug 2021 18:03:15 -0700 Message-Id: <20210803010331.39453-1-ederson.desouza@intel.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Message-ID-Hash: SQRDQGT46G6I2EUAVNREUYBESEBXJBKL X-Message-ID-Hash: SQRDQGT46G6I2EUAVNREUYBESEBXJBKL X-MailFrom: ederson.desouza@intel.com 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 X-Mailman-Version: 3.3.4 Precedence: list List-Id: XDP hardware hints design discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: V2hpbGUgdGhlcmUncyBzb21lIHdvcmsgZ29pbmcgb24gZGlmZmVyZW50IGFzcGVjdHMgb2YgdGhl IFhEUCBoa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1ZGUvdWFwaS9saW51eC9pZl94ZHAu aCAgICAgICAgICAgICAgICAgIHwgICAzICsNCiBrZXJuZWwvYnBmL2J0Zi5jICAgICAgICAgICAg ICAgICAgICAgICAgICAgICB8IDE1NSArKysrKysrKy0tDQogbmV0L2NvcmUvZGV2LmMgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgfCAgNTQgKysrKw0KIG5ldC9jb3JlL3J0bmV0bGluay5j ICAgICAgICAgICAgICAgICAgICAgICAgIHwgIDE4ICstDQogc2FtcGxlcy9icGYveGRwX3NhbXBs ZV9wa3RzX2tlcm4uYyAgICAgICAgICAgfCAgMjEgKysNCiBzYW1wbGVzL2JwZi94ZHBfc2FtcGxl X3BrdHNfdXNlci5jICAgICAgICAgICB8ICAgNCArLQ0KIHNhbXBsZXMvYnBmL3hkcHNvY2tfdXNl ci5jICAgICAgICAgICAgICAgICAgIHwgMTQ2ICsrKysrKysrLQ0KIHRvb2xzL2JwZi9icGZ0b29s L21haW4uaCAgICAgICAgICAgICAgICAgICAgIHwgICAzICstDQogdG9vbHMvYnBmL2JwZnRvb2wv bmV0LmMgICAgICAgICAgICAgICAgICAgICAgfCAgIDcgKy0NCiB0b29scy9icGYvYnBmdG9vbC9u ZXRsaW5rX2R1bXBlci5jICAgICAgICAgICB8ICAyMSArLQ0KIHRvb2xzL2JwZi9icGZ0b29sL3hk cC5jICAgICAgICAgICAgICAgICAgICAgIHwgMzEwICsrKysrKysrKysrKysrKysrKysNCiB0b29s cy9pbmNsdWRlL3VhcGkvbGludXgvaWZfbGluay5oICAgICAgICAgICB8ICAgMiArDQogdG9vbHMv bGliL2JwZi9saWJicGYuaCAgICAgICAgICAgICAgICAgICAgICAgfCAgIDIgKw0KIHRvb2xzL2xp Yi9icGYvbGliYnBmLm1hcCAgICAgICAgICAgICAgICAgICAgIHwgIDEwICsNCiB0b29scy9saWIv YnBmL25ldGxpbmsuYyAgICAgICAgICAgICAgICAgICAgICB8ICA0OSArKysNCiB0b29scy9saWIv YnBmL3hzay5jICAgICAgICAgICAgICAgICAgICAgICAgICB8IDIwMyArKysrKysrKysrKysNCiB0 b29scy9saWIvYnBmL3hzay5oICAgICAgICAgICAgICAgICAgICAgICAgICB8ICAyMiArKw0KIDMx IGZpbGVzIGNoYW5nZWQsIDE1NzkgaW5zZXJ0aW9ucygrKSwgMTY1IGRlbGV0aW9ucygtKQ0KIGNy ZWF0ZSBtb2RlIDEwMDY0NCB0b29scy9icGYvYnBmdG9vbC94ZHAuYw0KDQotLSANCjIuMzIuMA0K DQo=