From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0055.outbound.protection.outlook.com [104.47.42.55]) by dpdk.org (Postfix) with ESMTP id EF44E2C1A for ; Mon, 10 Apr 2017 16:31:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=APbsvSY5q3h8E/VZZhSjsoDkfoNwfoCkUl9IZEB9fDY=; b=abwjVssdO0viHbDoHREOtb7bm2wRQLlfpZZci7tPHlXKBqVl1F10VWHOxKh2VlrI/ffI7bqHElwG0VAOpnZCBnAK2jJtTK76vko7w+7/AOe0ipUYt+Dh9pXSU/3+QFE5by3/ryBb9KLSDywdW/hc++uC9WeEfRWx9Fn7NiagN/k= Authentication-Results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from b.semihalf.local (31.172.191.173) by BLUPR0701MB1026.namprd07.prod.outlook.com (10.160.35.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1019.17; Mon, 10 Apr 2017 14:31:08 +0000 From: Andriy Berestovskyy To: Konstantin Ananyev Cc: dev@dpdk.org Date: Mon, 10 Apr 2017 16:30:55 +0200 Message-Id: <1491834656-20656-2-git-send-email-Andriy.Berestovskyy@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1491834656-20656-1-git-send-email-Andriy.Berestovskyy@caviumnetworks.com> References: <1490288768-8114-1-git-send-email-Andriy.Berestovskyy@cavium.com> <1491834656-20656-1-git-send-email-Andriy.Berestovskyy@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [31.172.191.173] X-ClientProxiedBy: VI1P18901CA0003.EURP189.PROD.OUTLOOK.COM (10.173.66.141) To BLUPR0701MB1026.namprd07.prod.outlook.com (10.160.35.18) X-MS-Office365-Filtering-Correlation-Id: ce7ed982-4a39-4280-55bc-08d4801e3ad3 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BLUPR0701MB1026; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1026; 3:DaxRUoW12w88cjvDfqpuL/dPBD1DpzngXsQcoF+UeXxM5WWK9gj9ZR4rooNTn0uE/MXXW4E/REK2/EywAvd1yDzgPbmLVecpztbpst7xZF9wa1/CMwtTnwjnkvnKYZPweGpf56x9qdb/wH8WW9x7yxckfLbqGwvx3Bei4mCTVYDVTeYyZ4wxRQPvCXI0TMUrWGgY6BWiQ6O+Ny3hD7XpzrfVUykPr+4a0h1RIZ1aKS3XZxa1TVIBZtqhHuX0/xbiJnzxlDR1z+/ERkzHX3EcUI+R77RYL9l1P+kvvHqF2CdzeOJ8B30+3pPZ4F8Gu3YNWJ3H6qcO5c/7ipOIpRRJxw==; 25:Q5ZsqFk7T19HV6PZdy2AxNV0XucRcwuEvXMqH/9jpYBPoKvhbducjzI1O+WqhM8ZuLvRKejVlI037dPQhBaUAx2LA5m7VsClBDLpaputCcouIghRJ0XPwFHCo57U59T8BxxwnqWF422cFNi5MiGhbWbiSIDlXkE14rdbn3JGyAMIbG55W0iEGzqao43hjNhcvjJndGCKyXkEDPI2rcYfdLY+ijWYq1DULRAENkK5N6UGta2MvbDZh5MH0ZmFIuBumfsWnA9OYXtsIr+Mi77rYWAl6eF2rOGFdBLtCOUpCA9df77RsA2cAnnFs9KqifiW2Kjg88ZbcGxHQkYJAc38vP7q7zYzQ8VeFhyIytVp/Uctj3JTrtU5IZ2PHxAXDnBCOzSThZiZn11eOhW9mXTp2uL2oBBP5iNOd3nf0ca3SdY5pY5mE/cYoB8Lbne8/3WoIX0uir68eIba1f7Ri8dMow== X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1026; 31:idtnv98vjzQTTM+k7zdnMN+yb8wJ3CBJ7udtDK4SMIyLWm+Y9z+V2ZRg6pnJ9J+5rAeCVdHhhCwnqd9Yo2I1cR9eiKulZ0oS5ttT7XhCsXmtxi7pQm/a0qOv//zMhjGcast82od7jpcyb/WOnggi20ubyAi4OnmNIZ+p1kZs2x9XiBPAcXBRVjOPzvQHk5Ip8GLxUveJVPJ3xLYHZnjLe0CsokvtYkhxxnT61yYeujX6uhSPVQeJ4LRJ7wJOhZ10LQA6T5Dw2U6/73vfBgu75w==; 20:CYslN33sAQu8++szMVVnzwqZN9BCRAvX2pZtHOKrOeZLpr2ltaw1jCelf2QUI5XDcI5qU3TjFNpnDtEJrB1bthgUMeAxbbLI45FkUCY9bXHyr02CstsKmp4uoZ3ZGehB5N1oCSePcFdi3HsRTx9G15sotZM9uYyh2ot+oeai2aQXdT6rPKX1jOAH7qEoSc5ef1uYwI3ZiS3SvfJdFbqgdbLeJ9ekcqyOtKKFXuCrr1HsRL3S5A//F50j2yWVGtx5RgMPED7XsPHc+9CfZAVVIcZWVMEtwF+00sG3nJ5YWX82+3jSy+xlxm6H8nnrVIVJM/giD1rcyqftt9kngT8odtLleu2uAOdFbQP0SbvlssFSx6r05WXhxxT1rkabsHgoayrJVEF5uDO/it1mwub7HCG4eJklSSJ4ejPRrptq/zerc4IsDvy/quqwpjFBfpeyIDmPGxPTvbHmE/yl8ChA1Z+ySoDNecJjEgqPOKCU5/fhvGFG4nV9PFt4NIFxk5kNx4slCwkzr/rsSJmrdBgvW20Bu+Gmeh51aglZjlHktHRsFR3o00bbnPZke40ac6dTNgaPQLi8DJhUj9NSQh53TcNHK2Kkilul6c5NeG0v4Q4= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(10201501046)(93006095)(3002001)(6041248)(20161123560025)(20161123562025)(20161123555025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(6072148); SRVR:BLUPR0701MB1026; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0701MB1026; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1026; 4:kNutS1sJrgSKZ+qGke1zI1ISc9Dw27Fy0SIBJqEDi3ZC4d9wkjmZfVSffAWnLMQa+LmGYYt92rH7S/qZVWicPFrLrmjrP5HStfG/Ws4aKm4Fc6fB0BA77hNwMrDGAoSXfI4ejPDFkfOvl2DtEwB/88f/Bb3FISrjT+c2Honv5SHG2w9WnxwYpchubGQI+sXR6thGoZ/Ib8xd2GJ35r4b7Vf47NkuDVV3ZTydipcYVjcH+YVSdSA9BKuAvOZ9+qtU1uSTCaZtx1tmtktrvGzeeS3rvglujlD6GE65D+hWtVD7Pg84LxIha++7AW1AYWqrnoN7hka55JAWg7h5Wt/gCbVJwmm00ehiwMRNN1gB8OGIZB/Zc8R+C1RPie9EqZ20YFM8PhIDL8OgHiLKKWHWsQOzgGCWKtEVbPVZqZkfb5tCvnbvj3L8Xfo/3UmuBgM3cymxuEeVfjb5BpdPSOjuCzOtucqzainfL9lCDZysI6IqAHRvkDeiqw4+Sp5L210LMSEsfI5caatST3hV+7yJ1r6BoIN6/N1lCRMjP0Px+caTskTAxoMU5/PS9vl0rNnwH3mXnuxFtXHl5at4vzU2r+ki3W7JFFb6QoZLs6ED1AAiv2ra6WMPpLRIrJ2iWW87funP9b8VRxVgfw4VaWzpO9FD7YUzhLldGdfH+CfBr13Mhdn0jkboCg2cq+ThHJYs278B8TWqtLyWV5wsXe1IOQ== X-Forefront-PRVS: 027367F73D X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39850400002)(39450400003)(39840400002)(39410400002)(39400400002)(6506006)(47776003)(6486002)(4326008)(66066001)(6666003)(25786009)(7736002)(5003940100001)(6916009)(42186005)(50226002)(81166006)(42882006)(2950100002)(8676002)(53936002)(6512007)(2906002)(305945005)(36756003)(110136004)(189998001)(38730400002)(48376002)(50466002)(6116002)(3846002)(76176999)(50986999); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1026; H:b.semihalf.local; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1026; 23:ELA9zy8Sqjygc6uAbj7yfpLCuA5fl8c+LxvJr1uwICocQZrUd0xc58QtloZwPxfthnlKM+OvzXSMsUzoKWphjsf+0THAlGTkCqJq+COVLFlDa8uxqyhIgVm/tP/sFNATVuEyzr6VJjNSUN0q66TJ4awdzMAayJn78KOmpou/dr4ElNDumQIqtdrZ8iHr1/r97iGHuUn12WOqo9Mr6M2E7Vwg483K8cnZQEGIoB3cuj36CGGC/JnVePNh8CrkOZ/uthvqb8tl/oSvfD14XeFIimemzjCaAV+dr/BTSIVN5R77kbrgfDl5JwAQ0GyHu3n8Qhse9D0pRwu+oH750RP7wjYC4WBxiSOjIIIf58OSuvioBIjooS6ze0ZxXU5Wd5Qk0NGBhTt+/5CDUf3+VijNXOHH/lzQIDRDnJwyyYYTYyR2T7UmGxZY+YPbgNeHP+KH9qFBaqB/8VbypkMBmUggosnRuma/Y+l5pw5Sq5H85vB/sJJR0vwcSBFYS0U59r6HnKuqV+OxW2vIns9xvnvSgqG3XsO6o4np4GvXf5+CnHzxo2OM6n9QFIA8Vz0YjrImKja4gEoAlij4EH3H2u/yGGJDvflWVClmx+vBMGbnXOFh2zEfHLxOkRGZburBrG0iZm1nB97wnRMBSgNmxwLtoUW6OzwiGWgiRQt3KTRMHB0RiVFpMaZ98lLkJYODW8PzRsT8ZkESRKATZlLGNb3EQ3cCeWSU248ft4Ig0s6/Y64Azv/G+s0aIpaLsJWnA/kJ6HMCR/Ia7AihKeu48Dj5wsKj8XDrbXDjBdvq3zfUIQwV9y1TyqwOO+U74aCfdzjk8raAazKBMVjGPZV2FMILKNexrvubwZThD81EFI6qyVYzyQuR0tNzHul/zJ40lL9G3PoHHhYouCUixZpHioVvnTtvjvoaLSdqiVE5kkEiV5FGugNOJjEr0x0fc9q6qIO9 X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1026; 6:mLjwl3khZr152e3vMM0IOHGBdcqj1w1LD1896qmseLjB4Ahu1VJkMNdiXHkzKhnIjk4j1KXej1P7OP7D+o9I5K6m7w7KJ6jMH8P+9fKT//XcSjU8Ny5ygaDqz/13bOkcZjDqTn2n/2NnV+SZUmAMvZtdInPAu4hW2jjr1bSQoBJHpCK+idYciCD5sKsVXaP4NGs77804afhtkHUvQ2+5KykyxRTfFFG9iPUhjB0X7KEq1HfATeBdJidqkloEFy2+2XLkLS/ENmyK1bu2kB25hUIawje/AiRGj0lBRuJq/s2Cto9XsocfWSWBEL2xfHhJDstTu+vY54mjY49YJ1QScGBivb5NbUOefP3C/hPmxds3MpqgZBNggH/K+zo3b7makbKgFMmd98IbqYkxe3OwPa12cvps066iXqbe1eZbuBNe3kphMnap0a5oDY9kqfjHtFxXGGW2523YTzJDpdVqsg==; 5:mvrFLhQqUnQlQjHXAFUiYEkIIg6jcEHnqNFFoAaMXoiQ9k6yS/criQ4UbAMD1f/biIVWZVHh70xS8v2AhQRct/M2GquWfPQG9OrVmPAQg766N8p6ru1lvRlp4fTkSsqWm50AOYcWMBlzUUx3cf5ahvx1ex5y4mMbcTYHJOY20MU=; 24:3B5ScZG1MKqoHSW5F/3k05P/UsavKgPb6AVKmuW/NCWWKG3D8Z4+EGYzpJAGyR/MSgbx/bOGIvP6+/7IKHtzpfqv62Py93xjqojxsRooHyI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1026; 7:0zCiA+UDWn+lG7GgagYjzoKINJGRWVIqRVNnbsaaZwxNEUyop3YpTlPDL5Oh7aajl20knyJh9qNvhAna1IcHwsyMHP44JOshqa3DviXT7QvVOBJXsLy76woAwZsxEqVgZ5C3qPYhTICJ1r5BTHvLypuYukoIJA9dXhvDwKWDX3VdqWjfAP9k4tLptPsHa5Evj4NcvxESrfdwBQY9hv6/lh7baA3Jvq96y2SS9uUrc5aej9wkKWaHyuU4C1yPSrRwfWPXaJF9ov3Jbu/YH+C+RaSKdo2hxZQkQBaFqb4gbO/urtmJrXSXR0OhN1ETFVzMwxu02m+N+y2uK6pwC8MThg== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Apr 2017 14:31:08.5697 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1026 Subject: [dpdk-dev] [PATCH 2/3] examples/ip_reassembly: limit max frame size 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: Mon, 10 Apr 2017 14:31:12 -0000 Some PMDs do not support 9,5K jumbo frames, so the example fails. Limit the frame size to the maximum supported by the underlying NIC. Signed-off-by: Andriy Berestovskyy --- examples/ip_reassembly/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/ip_reassembly/main.c b/examples/ip_reassembly/main.c index b641576..257881c 100644 --- a/examples/ip_reassembly/main.c +++ b/examples/ip_reassembly/main.c @@ -1063,6 +1063,11 @@ main(int argc, char **argv) qconf = &lcore_queue_conf[rx_lcore_id]; + /* limit the frame size to the maximum supported by NIC */ + rte_eth_dev_info_get(portid, &dev_info); + port_conf.rxmode.max_rx_pkt_len = RTE_MIN( + dev_info.max_rx_pktlen, port_conf.rxmode.max_rx_pkt_len); + /* get the lcore_id for this port */ while (rte_lcore_is_enabled(rx_lcore_id) == 0 || qconf->n_rx_queue == (unsigned)rx_queue_per_lcore) { @@ -1129,7 +1134,6 @@ main(int argc, char **argv) printf("txq=%u,%d,%d ", lcore_id, queueid, socket); fflush(stdout); - rte_eth_dev_info_get(portid, &dev_info); txconf = &dev_info.default_txconf; txconf->txq_flags = 0; -- 2.7.4