From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0055.outbound.protection.outlook.com [104.47.33.55]) by dpdk.org (Postfix) with ESMTP id 6D8A6326B for ; Fri, 7 Apr 2017 16:18:52 +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=qAa73fImwWOwnf3rHuqMzBtKxsYQjYjgZL7WyQ/frGA=; b=aGNKgUKbNeZbqHKui5dH4nDP0oa4+AxQEHybC+WKtEBYHB6xAOFKJ2OnY72Wf8QilFNiayFBBs6VVt4Zo7VnotuRI2ySv6h5kC/G6ZgoylhaTyBjQ04hQsS6ATv9XgQ1ZPjGAaLXrGD0yK8H5OC3sKnLjWA+u/WwufcFp/g4FQ4= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=caviumnetworks.com; Received: from [10.0.0.75] (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; Fri, 7 Apr 2017 14:18:49 +0000 To: Bruce Richardson , Thomas Monjalon References: <1490288768-8114-1-git-send-email-Andriy.Berestovskyy@cavium.com> <1491562925-27247-1-git-send-email-Andriy.Berestovskyy@caviumnetworks.com> <7103767.xpENpphzvJ@xps13> <20170407122956.GA26192@bricha3-MOBL3.ger.corp.intel.com> Cc: dev@dpdk.org From: Andriy Berestovskyy Message-ID: Date: Fri, 7 Apr 2017 16:18:40 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20170407122956.GA26192@bricha3-MOBL3.ger.corp.intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [31.172.191.173] X-ClientProxiedBy: VI1P195CA0002.EURP195.PROD.OUTLOOK.COM (10.175.187.12) To BLUPR0701MB1026.namprd07.prod.outlook.com (10.160.35.18) X-MS-Office365-Filtering-Correlation-Id: ba28e9c3-7b4e-47b9-f249-08d47dc1034e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BLUPR0701MB1026; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1026; 3:ubaq4x1m2UJnmHpdNfKHvtkCpiEay39TAyrcZ4ZG3jAqpHSkRMYqOiaqJgfCtP+qzkwGwhh9XqzwiRlGCP3o61tqBISynP0Ov3RDWxPT0gdq5KpLo+DTM8ekT1K1m6ORgsK9vHrLG2aYjMRHM/1nFaNGc4Uq6DrxFujTRIAA9Ic+U020h7aLza86xGW/jImIScGam8YPdiSlcV5ntnzoQKiOvQmhyDvMC6+vyhSsMbpGE7HDXl7wTov+3W1nYBojOdItLyBjY9AReqrvOWc0Fzb9Naupl0I3iNEZB+CdgcfsSMJFsrz1TCHOIqD6bXJ1Vppz+TSOYS1kDFzdrb108w==; 25:ujVUzMtTKpCZ6rZbmdzuDgVXOUvY5CxW2Phhao+S4fm1JhgoGluaC0hSFKyryz7+oVn9has3UpB0m446DtpSSP0qly7KzpNmg0MQ4+xVlImh+PSF3ylMxoltwcGhsLJeGsdFzdvTscm1j2ZYNvRuiMRyeEgFjBhwoZqHyougW/uW/EV+4UJ9ZD1ibWrnziZV2eixGFsiAaogfKjdNsCVS5dp+uywwxK3hfjnyHGTKYw+p+rLT1woiH6i4e3q8izHONyKJ0GAYL5U+z7LenXNSIjO7LuyT5VwtJ39P5N8sCaI1pC2Q1R7qtoV5AOFMx6Uj/UW7XPAVx6e+7t0FmmAuzxlKHDQo3euS2rkAZOl81dzrd1VUswwAvgD2h3T2PpMx3IIWEiOeZkZ9jjraNx488E+VLfxH05b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ispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(10201501046)(3002001)(6041248)(20161123560025)(20161123555025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(20161123562025)(6072148); SRVR:BLUPR0701MB1026; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0701MB1026; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1026; 4:fZ1ywgdGeYxJqiVXBi8FzBXQJQEFzVGhlbnpK7D2TJPhZ3rxQC+RoCixzJToHFc3TZQlOeCRGVzmVFDeNCX9YzVXPduXPsgkUlkJ1azUeOT8MQ2+rWqDMDeHflbgFSlOPkZXSdvtSjjJOLJB5Cc/Qg0IaczH6krxO8nxiV6el45G8dvtXWVQJOtfCw/vkWcktanX6sG2ERm5AcIMJNvxNLMF4d81wAx2dX514XowRHNyEizY5mou/nZ3VfSYnx6CH3WwsReD8SKF33m805j7zQx/JkTN7KVG1yZJ42fd2lRRAGO/z+zg1udkt2sxUGREJoQ+EF3/8CYOVORoKVs/Ts16Y3lZpcWs43or/V6VA6va89aX/i79ZWj9lThCXcUTmr4L7B3wtadU7xy/PG1ApXHq6RdSmVe9/kzlCMzWQCd2H3mwilyiXOO4+RYlEJW3N2j3H0BlNeJAGGvXrSWYBuGX1tkp8ztb89iZ6jf5ZwUsiltGlxJlKm3XYNJpJVb+5rROO/LTqpkyJmxEaM7ErFiK8U8NggpzF6zD1GGLOkJAeibCpgxc5u7FnI/az29WWMjObrYhYotqM4WPHlp7IrnMpeiFTJSodOOS3sFPKJClWrSyTDEsE9nNI3sPTfaq07SH5NRHB0gJyuiFWXuiq7/o5lvB1yZhPosCLvGzLAH2Hw2zSg2BBiEp7nhd/NOz X-Forefront-PRVS: 0270ED2845 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6049001)(39410400002)(39450400003)(39400400002)(39850400002)(39840400002)(24454002)(53936002)(2950100002)(42882006)(6666003)(6246003)(93886004)(25786009)(229853002)(53546009)(38730400002)(31686004)(4326008)(42186005)(4001350100001)(50986999)(54356999)(76176999)(33646002)(6486002)(77096006)(189998001)(64126003)(65956001)(50466002)(66066001)(83506001)(5660300001)(3846002)(6116002)(65826007)(2906002)(8676002)(81166006)(36756003)(7736002)(305945005)(47776003)(23746002)(31696002)(90366009); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1026; H:[10.0.0.75]; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1; BLUPR0701MB1026; 23:dcqVZEM/e10TqrrB65QVytEdZjgLh/DHQ7A?= =?Windows-1252?Q?aYTARBMIwzyMGoXryUtU4YlP6Pfvg0P7ttXsQhAO8ts72qgT5Riz5McL?= =?Windows-1252?Q?H6Zt0qCqnv0O5ScXWgz0memyfFdlGTsaCxe8vPzZQ5SZwOI+ZhBZ1/fn?= =?Windows-1252?Q?9IkfvxVksZYYvTQtz6D/Mh7sO+Qyg5cNJFM1yIzrnvdAU+cqQspGZLn9?= =?Windows-1252?Q?l5tof2gLRoi5NkZXPiSxWgnHwBJa7G21/OjbQRPiRpyMmr9HmSoVXXXc?= =?Windows-1252?Q?D/UIHrWrUt/9hWGC3SvXdZpYLuK1i89+lz9RydrSs41zpy7ptSZMBiB1?= =?Windows-1252?Q?mxNOgeLDMVEVLc/3JEuh8X/G3AeU5jf26xraf6NdV5zdHGdDZ7VIBhHH?= =?Windows-1252?Q?UoTDqjcjksRcDTahu83QZaCorRZyx3zGZp5ev38JgIZBWNy+AixJpvnH?= =?Windows-1252?Q?DR8+Norq1AYX5IW2v19h7qzNfdv9mg+sV6Z1MDhyi2k9xzLCPoCtHaQL?= =?Windows-1252?Q?9fEh4/HKdEFtqH05LVZRSGn0PkVM6WYXpU3Nns0ix9Foftm/UJf9iB0v?= =?Windows-1252?Q?f8I7pRQXWxzBfAcwtzPh5g/ujRgCTkMSEVyTKZhUxgtky9z3X8fBbJIF?= =?Windows-1252?Q?3ZPvT6OvZXGn/51OiIH/PCFcuYN2hli6/7wYaXb1g93Dhw/3Qp4f1EmN?= =?Windows-1252?Q?RtOeel1cegS/zA6h+2GMo+gvBy4ckTIiQy2F0/PEp/9NSSgOsjLe47ba?= =?Windows-1252?Q?W3GlgA1j0VRE/OjjUQ35U3l/D2tZwS3CgLQzCnBtr0bIAwvHG2brtTFz?= =?Windows-1252?Q?RrnXx6BP2Fjkx79l1KDmEHl9PLTVejkab3JA7toMYsqs09AThrGZ6hUs?= =?Windows-1252?Q?Ca+qtOIJ/3UnQ/RoKiNGBwReL5xrH3nwOIGmcT2uP0IDNoQkN/2jBbvt?= =?Windows-1252?Q?OSazwV9XaWdALwp+0oW3qxPQagJHipiw9WipJ4hq+gzpBXddcmC7LAWR?= =?Windows-1252?Q?6q1/FuJ7e7/45m58J0Y9kssTzz1Q5zYMvyDUUPQCtybl1G9mtiEX2jfi?= =?Windows-1252?Q?NP3Q6STrMY4nka0sOCvy2FLonurWEX09ZO5c0TYfKdvdorARIV5IVkRi?= =?Windows-1252?Q?r/JeKog35BTbM+LOtBz4mhW1cALwmU7GJCsES5oVGSsWEja6Ziqb4DhA?= =?Windows-1252?Q?qOGPhvxMTxbriNzV9o+P9IQM3kaQiyAUkoWJTO1rV8hIrFMUfnT7fQrS?= =?Windows-1252?Q?OY6muz1s6h+6dhSsTCm31CkAYKfcLrcrc0AuktEo2poWkejuU2zHnYNF?= =?Windows-1252?Q?Dli5jc4jEduu2EpkT7+v+PVLD/g=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1026; 6:dURPLXrNnE0XbBOF2oIfMk90fAOZG/xe/l1jXk8JGOd+6o9Z+XLcCkMTr5/N+smHHzxozdp9GkRTFKaaEgNSj9KacbgTHQh3fMjtvStDMeSFTzpr9HrxvIrdxGXvsWO9CA+IxRwn9n6Qdk3Tolp8UrG/QaQJFU0Q4yqXBSXhoL7yPvspPYqOB2OouZH3vXWA6QOc6QqmJr7W0yGaze5IZpryXZ9XimjO7L36wyexj4pDTdvG8OoPk5hButkxAyouN3wm80OANiJs/6EYzmoRqlfYYumjzcDacEKxPqr3zEht9gKn+PxSt51rVZ10+IiLe/RaHs62orlWMAxGxJe4nq0aNW2d42XkiFUCVp/KBDbOy/7ebrfmvUviVBXrHgdDNQG3Y/jLynVsEurmXRwUaQ==; 5:6c4m369fvNuXBgjhFSg12HV8rDG931Hm+0GtfnOxvWTEGSR5iytGQ+pIRabjew5uiWrRriGOvCzH/xTc8uHyiW/h6Z0z55ldbqfHP+HiwDveq8HRO5ML9G5uj72KGBD8qjhfJLvSu6QTdfLwG602Zg==; 24:BLnHkhz1PHbDRD21FFdvZjTTXiLLktEUtTQX3M1e5pWqz1vtd/XQG/V/adjCBIeQqx1hKJNFNNr1dUxj1G9ultlTN77vFnZsseRfJRfvkMg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1026; 7:TLfG1zQ6fVmGMzSC/rUTphif0IsBTHJeBymHFOVlDlotG7+f1Kb0Hsh6+FSHRGPaRA/4CK1KO0Bb+s7g6p6fa1R1qt/hJnMNcR4bcefvRV4EU0mYsFMyzUfxgJyuXAbi7FpE4H8VaLj2yHx9IaIAEDuynoOYgpOgGyBtRYIK7vCdf3qK5Og+kQsT24A2htlZLRSmX8xBZ7F6JgTLfGNldza4c/28TteYNEXB9eb364tN/hXxqkOCNE60pa+raUvo3lZ0QFsgmrfcLM34JPuGW3NP6mbrMNHrmMG8nJONvC9nRDO6DUV4S2ohNIj/Ztzr0exUJQ2ChFC6qYwnvH1pqg== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Apr 2017 14:18:49.7810 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1026 Subject: Re: [dpdk-dev] [PATCH v3] ether: use a default for max Rx frame size in configure() 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: Fri, 07 Apr 2017 14:18:52 -0000 Hey Bruce, On 07.04.2017 14:29, Bruce Richardson wrote: > Is this entirely hidden from drivers? As I said previously, I believe > NICs using ixgbe/i40e etc. only use the frame size value when the jumbo > frame flag is set. That may lead to further inconsistent behaviour unless > all NICs are set up to behave as expected too. You are right. If we take just Intel PMDs: some use the max_rx_pkt_len only for jumbo frames (ixgbe), some always (i40) and some never (fm10k). What if we add to the max_rx_pkt_len description: "the effective maximum RX frame size depends on PMD, please refer the PMD guide for the details"? So with this patch we make rte_eth_dev_configure() clear and later PMDs might change or clarify their limitations in the NIC guides. Andriy