From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0070.outbound.protection.outlook.com [104.47.2.70]) by dpdk.org (Postfix) with ESMTP id 34A8AE5D for ; Wed, 13 Dec 2017 10:58:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=FiLM+eOUMlHhSe8k5tEn2gUt2LUPAVaPRwjnPrvrssA=; b=RJWBAjlWjKxtlS+Rij3DXiO+YvsCXyjfiZEbZKKeIy+RTJ42PUh5pLHMYggVNlTUoquI4lRKaCrQqWWgq7TByVsbjoTyHbfXp+lmsTZBRCl3N72qYVkCCUvX8WrPWcc0YERFEuDMstMTrJkVZjypnHuYxCorxp34PfvTEENyL+A= Received: from DB5PR05MB1254.eurprd05.prod.outlook.com (10.162.157.140) by DB5PR05MB1254.eurprd05.prod.outlook.com (10.162.157.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.302.9; Wed, 13 Dec 2017 09:58:18 +0000 Received: from DB5PR05MB1254.eurprd05.prod.outlook.com ([fe80::a569:d1a3:34d1:de67]) by DB5PR05MB1254.eurprd05.prod.outlook.com ([fe80::a569:d1a3:34d1:de67%14]) with mapi id 15.20.0302.013; Wed, 13 Dec 2017 09:58:18 +0000 From: Ophir Munk To: Pascal Mazon , Thomas Monjalon , Stephen Hemminger CC: "dev@dpdk.org" , Olga Shern Thread-Topic: [dpdk-dev] [RFC 2/2] net/tap: add eBPF instructions Thread-Index: AQHTabFtt/pWTeALPEKzsjYmMySYEKMtJEoAgAADIwCAAARJAIAABUMAgAc5kICADLKFUA== Date: Wed, 13 Dec 2017 09:58:18 +0000 Message-ID: References: <1512028870-13597-1-git-send-email-ophirmu@mellanox.com> <33612859.oYs3VmdAvV@xps> <20171130092042.402243a7@xeon-e3> <4022270.ekSSXE0TKz@xps> <8254049b-9661-3048-756c-b0b1d738885a@6wind.com> In-Reply-To: <8254049b-9661-3048-756c-b0b1d738885a@6wind.com> 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=ophirmu@mellanox.com; x-originating-ip: [193.47.165.251] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB5PR05MB1254; 6:w5lYJ0IuquISabPatOhNts91nCNRw7MsCpE7PNqHekjkFUoajrMahrk40hdTW3bT7uw5kfW7PDlMh6fiO4zRIKvCjWkfX527g4TZJZ+j9K2atLTavll/b7VKBnzXbYpAHi3vje2XkG5cxajsJuTutbMqbCv1SM/Q1a5ieuMZsaK3Mhgra3zGnIqHNHrdyiIE0kWaA4wGxgSTcSu4nD1V5Cfjyq67EemZL9v+HE/yj+p3mn2uzyxUsa/BzAT+ux+LPvU1w+PUdH5BKPkPhEFYjfvMqPQvRivSoTLMV0HRx0QcRgRBSiXiE9lEUmqF8xHztu+RqL34v/trFfnW6Av5ni8ji86l1+vCdQFTHX2Mt0o=; 5:ayZ6u3TiOwkbS+xbxHGRtQCg9k2G2Si54x1RXJMZutr4ooGwxNEqmeA5uu13/SHi1VA/vrkPwkjkv5EWjfmoPK7A3ie6lRMvObPzeUSAt+WnWoQTNi1uR/dozpyqcczb9fizecrEbucKpX+PnMZHymrE0c0qxyZ7vD9m3I0t1pA=; 24:MROfoZtMsLkdyIM6eZZxv5yZdiLft6ri7eJJryntf8mfMYuvEKS8PYwRa58AdhZbJ2sXwZN5po1D6aJlslSS0veTkH0xJipzVp1aBfALC/U=; 7:VW3il3n8M14b/OsEdbH0eYqYCMY6+v++Fqa6voVrjnsmi1GYLMZwXuNz/85FSIXt1qZOyk7VRWm+3erKaRfsmgPXfs5HxJnBBPvMZ8rArCf+d/L3V4tD2IffE/MTWFEQlIOHFpcyk5Bb/kQRU7uf9kbbIBjHXS9qYL5JpTUtrmLm6iVFfL16R1UCWiLcCevfI7JhGureU452JVZl2nYHKMmAcPW0gsGtFG0V0LZx5B+efo8+Vol0XABNEaFOA5p6 x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 3ce34306-b445-4b03-c14d-08d54210092d x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(2017052603307); SRVR:DB5PR05MB1254; x-ms-traffictypediagnostic: DB5PR05MB1254: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(58145275503218); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(8121501046)(5005006)(10201501046)(3002001)(93006095)(93001095)(3231023)(6055026)(6041248)(20161123562025)(20161123564025)(20161123555025)(20161123558100)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:DB5PR05MB1254; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:DB5PR05MB1254; x-forefront-prvs: 052017CAF1 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(346002)(366004)(376002)(199004)(189003)(24454002)(13464003)(5250100002)(53936002)(2950100002)(2906002)(8676002)(86362001)(2900100001)(97736004)(5660300001)(6436002)(9686003)(4326008)(107886003)(6116002)(6306002)(3280700002)(54906003)(3660700001)(106356001)(66066001)(110136005)(316002)(8936002)(105586002)(7696005)(93886005)(74316002)(81166006)(33656002)(7736002)(305945005)(966005)(81156014)(3846002)(55016002)(229853002)(478600001)(102836003)(6246003)(76176011)(68736007)(19273905006)(25786009)(14454004)(6506007)(99286004)(53546011)(563064011); DIR:OUT; SFP:1101; SCL:1; SRVR:DB5PR05MB1254; H:DB5PR05MB1254.eurprd05.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3ce34306-b445-4b03-c14d-08d54210092d X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Dec 2017 09:58:18.1977 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR05MB1254 Subject: Re: [dpdk-dev] [RFC 2/2] net/tap: add eBPF instructions X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Dec 2017 09:58:20 -0000 QW55IGVCUEYgcHJvZ3JhbSBtdXN0IGJlIEdQTCBjb21wYXRpYmxlIHRvIHVzZSBHUEwtZWQgZnVu Y3Rpb25zLg0KDQpQbGVhc2Ugc2VlIGtlcm5lbCBjb2RlIHNuaXBwZXQgaHR0cDovL2VsaXhpci5m cmVlLWVsZWN0cm9ucy5jb20vbGludXgvbGF0ZXN0L3NvdXJjZS9rZXJuZWwvYnBmL3N5c2NhbGwu YyANCg0KLyogZUJQRiBwcm9ncmFtcyBtdXN0IGJlIEdQTCBjb21wYXRpYmxlIHRvIHVzZSBHUEwt ZWQgZnVuY3Rpb25zICovDQoJaXNfZ3BsID0gbGljZW5zZV9pc19ncGxfY29tcGF0aWJsZShsaWNl bnNlKTsNCg0Kd2hlcmUgeW91IGNhbiBmaW5kIGluIGh0dHA6Ly9lbGl4aXIuZnJlZS1lbGVjdHJv bnMuY29tL2xpbnV4L2xhdGVzdC9zb3VyY2UvaW5jbHVkZS9saW51eC9saW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