From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0040.outbound.protection.outlook.com [104.47.1.40]) by dpdk.org (Postfix) with ESMTP id 32CE51B7AF for ; Thu, 8 Feb 2018 12:14:43 +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=/I0NPg8J4vEFBT6gjJz0ImkKtnlbvyiMCn8J8Mr1J6o=; b=TXsuUKyeUI3bqHvy6hXjop5EpEJcvcuW6QTNMzOXOEKrjyNtmHMmmymyuStJN0sbpEqPk+Bhv2l1mlSsr5YlOlsGEnMFUKUiK8EXsJOa3SvlbtIuew3Ddt41bpebwscMpdTJKqp+dH11Aa14vRUUYSY+KLQdeaiJ8Obs8UZcfrY= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=motih@mellanox.com; Received: from mellanox.com (37.142.13.130) by DB6PR05MB3205.eurprd05.prod.outlook.com (2603:10a6:6:1a::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.485.10; Thu, 8 Feb 2018 11:14:40 +0000 From: Moti Haimovsky To: adrien.mazarguil@6wind.com Cc: thomas@monjalon.net, dev@dpdk.org, Moti Haimovsky Date: Thu, 8 Feb 2018 13:14:27 +0200 Message-Id: <1518088467-21099-1-git-send-email-motih@mellanox.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [37.142.13.130] X-ClientProxiedBy: VI1PR0102CA0003.eurprd01.prod.exchangelabs.com (2603:10a6:802::16) To DB6PR05MB3205.eurprd05.prod.outlook.com (2603:10a6:6:1a::31) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 964cabc8-7964-4d29-8cb8-08d56ee5265d X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:DB6PR05MB3205; X-Microsoft-Exchange-Diagnostics: 1; DB6PR05MB3205; 3:b6dXYAE4BjAheAbkS+Gc9HUeZiYsdbM2hjjXOJFKYD5dd8PLQoC+yS48SB03KIeXuLyV0JUWC8aN8XLKXaoQ5iPTAHnanWzb98v4Iu0mFJr6ONgt8Ix44rCh3eY26GATjk4fsPSe1UM6A+X6qPtmYB0bg1nagMnoDvjwQdcLGBqUn/EyVrtFUj0XqBuecMkD4FOtxIdxYnlGJ801wE+B7KAvCu/K4lB9vNsWtFI2wIMmrJ02CVGFo0CcEZzMzYtR; 25:xNdhQ63Xn6hfjhRnqJewSl5Nrijpmw5XO1A7KIpjg7eNIL0uDOFeYXvdfy2XovdP2Dz/C2WkuJYKuZjC8D6+ArutRktElFkS/Oq8Mt43nRuvoXzAybFj++t4XMOJsFM+/pu6px7FsMGHx6eA+/gupQFT51/CRpsVLzVduhH1CKbfmguyeQiQk0n8HLxGS7p3IyVOYGLbXqKr8iNkJy3VAhZgCwpTLUXU0TLQ0APT5qGIDW3V0bcMxD+jssJXZB/l0Svu5awq+GI9D3jIfuFGmuuQLWwjlW1gfSu3OUXmbjntEkE29i9ceSLsrLtP+gI5XLjm+pfHFC+Ua8xuaVtIDQ==; 31:vtOgoqe0Kt5B2xvoIaLPljgwTzkC4H6TGM+1WyzSBukkj6OA6rJLbchGikmBGI9dt5zqIzSiJ5aDemt85uxMUEsZlxi2Nz10WfRk8BMtixH5TbCJ3kyW7p+PTKTCpeR9nhA2Ch0nL4QQL+uZ+WUBUR/ESNnhws86pApCoi2SMYOxTV9us217NvQGcxIdlRhBUYPWY3yGHcd8O0P5hYr3eE52QoWVQM+r+DxjIDeCgEg= X-MS-TrafficTypeDiagnostic: DB6PR05MB3205: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; DB6PR05MB3205; 20:GYQfmWHknKdm9rLME8dllqhfsmhtubcAO1hH+BuCVnG0dzYKuqx0oRAnxyYaJjgV4JGqOc50zRMfaT/ewYpqW5p3kBdqI7LSknH13JbfCgaGGSMBskeUf/hxKM1R7o3o7jLt9gLU01DFiMCmXGd6FrOqTY1O0tyNq2hFSbkaeNt6EdaCvg7a+dUerdgZI0X/hE367cb+XQmw3maOwBou+b02xghxvsLi5DP0BQiPYhqxb1dVSpq71L402HOHtVixjq6OLCqr9kepcqjTqA/EpxIqorXLvIKj8Pg9Ew/AYIfLVgfUDbQ2vrPpQyL93VNXeNgJLZZRkrblwcBpOhz2nIaVZEFhwHBYlqlxNnl929e8h7efGUc1zWzZZzd8McoRmenopDj5xfZwGDpsxJyqtFOn1pSmqfn5QLtwMqk7QGRdzDjRCBwMeVxnomLhpJmnIJ8G8VGVxh5s59vmWsaRHq/689SXz/c4++1eTvJMrrK6icR5j6hRhWjkdp2mTh97; 4:Df9sJtaYs89DtLZtjqp4yyndWoPaimB5Np2DGZCa6jYfGJKL2yY0NDtRyfTh3nzFR1JeznooThJzbmIkXuiT9ZaQi6QrxQg6BGGZ8Hi0j07bc3tCRWy//5nCbhmckYJmWz/U6ES0iidtXRLIYOc8SsGN1t0WJynfklL6QPMwJgBQ2dT8ae4OPHqSeCt2cyZ4OPkYXeHnACBqNEUxoxLOU+4yTtwXi9W954AaDvC6PwmYjZXDv9zJQFvsvmlVrk6hggp0qiyFWj/WPCpk+Mku+A== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(8121501046)(5005006)(3231101)(2400082)(944501161)(93006095)(93001095)(10201501046)(3002001)(6055026)(6041288)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(6072148)(201708071742011); SRVR:DB6PR05MB3205; BCL:0; PCL:0; RULEID:; SRVR:DB6PR05MB3205; X-Forefront-PRVS: 0577AD41D6 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(39860400002)(376002)(39380400002)(366004)(396003)(189003)(199004)(50226002)(16586007)(81166006)(316002)(81156014)(7696005)(52116002)(51416003)(4326008)(2906002)(4720700003)(66066001)(25786009)(68736007)(8676002)(2351001)(59450400001)(97736004)(106356001)(386003)(2361001)(36756003)(8936002)(478600001)(47776003)(15650500001)(305945005)(105586002)(186003)(16526019)(53936002)(55016002)(7736002)(21086003)(107886003)(1857600001)(50466002)(6116002)(3846002)(33026002)(6666003)(6916009)(48376002)(69596002)(5660300001)(26005)(86362001); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR05MB3205; H:mellanox.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB6PR05MB3205; 23:Q9mPTxUiF708vGaf9nbeIipdkbG3g9XmkVE7NBlhr?= =?us-ascii?Q?laYly2lvEVY4yKjthYqnSmY2qEMdbL8ltdc61e2qd+/vbR5eBYPtRq7jXIMi?= =?us-ascii?Q?saKrX3bo1VgyUb3gg3yUIi9VOns0dRXmoHRKrDm6N5or8N34noxbl+E3bPwL?= =?us-ascii?Q?2R6c7SiGuUrPTz0XvN4/O93VulXGp74KMKdKFlkxVgwXQXT8uBK+uKJZIv6k?= =?us-ascii?Q?8w3vu0C6P2jkc+QfAOwR1npAA5yvrkzJ3Y6j0FqX9E65lbW5KGabIAH8Om7n?= =?us-ascii?Q?nHbfxTLCn6LT9rD5qLcU7Dsdw80L0l0ny4YNGHNXnbppDOkVI+jfSgFK+yph?= =?us-ascii?Q?6Gu+tFhyu62xbRZWNHupap0qL60tNT2fUnOlCR6SCMOqIqwx8Zc2yIJvzkIV?= =?us-ascii?Q?+2Uqhz8j+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ange-Diagnostics: 1; DB6PR05MB3205; 6:MFpcN72r0rOtPvAPgdPHhZLxWeCIyKkcGg3Xzx/8nD+gjNSKj9BtT2xH6sY8od3W8qIHy3PCPcnrxIAdYyrEUUIFVxQHVOjVtKjuwZGE9P1l9o4VpJZq/4RMnNgMBYCdjYFAfbcB6Qc1Y9JFG7Ix6srB+jn7LlnxBe9CshemgUh5HESnrx3bw0qodWTM1xLn+agQe/7hn/3xIhtEaMnbRjJ1PQDtcw5seBXUaoAz48wBKyWP3as4M/VZcCi4fALU7AKjoN/T+D4MMi4urNTOFytE+nfdHFo61pMFtXp9uhBgZRwsaUNi9+sZI5Vc47qz7ZVfoPOVTMVhnPbRfPEJtkOuJaG6rOUUbhnXUji8j4g=; 5:ghel2K8440imihq9GDLiog3T/5k90V2tUp5ben0iqo7rtvua4sd8d6whncimd0G7s7xX9o4sbTqlaI8RLjy0+M7L41pjBP8HOLf/nCjbaPJwoaQtmqCHpBZb59JaFWuXFEnzkuq8k/4Ws3wnsWo1avFg2jwCGNWyjSvBClKRB/g=; 24:mI2IMVule6qlxZJUNY/wWXQiRhy7Avw/2dvVB/8tI4GF+6E+rYF0TaGRDjuLADaolkt43N2c9ND94XPrMIKPINv2+qhRig+D6UVgL5ofx/M=; 7:WDdJLdU1EHH68ZYE4Wg/dfMLz22egjEn5AaIQoisyf1DzWXoYpDk9IRsNdZG/Ko4TodPLJPMxlyAQ6feXS3E3+uUOmcT3I2N/GpoLuA1RPkzhbvN9xlGD9Q+2Z3lts+6YeI9E7rxNHbEWB6IwXIE1HQv+1DDafk61zSog3XmoFuiKh4YV25JrzhpoLYrX7gRSUiO6GGZ4SFAc4cE/1oFoInEhl/O9QOAHaknpZUJkeTDgJW4D2c06aucwxDlucK+ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Feb 2018 11:14:40.4274 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 964cabc8-7964-4d29-8cb8-08d56ee5265d X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR05MB3205 Subject: [dpdk-dev] [PATCH] net/mlx4: update Rx offload capabilities 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: Thu, 08 Feb 2018 11:14:43 -0000 This patch updates mlx4 Rx offload capabilities to also indicate that Rx CRC stripping is (always) supported. Since the device does not support disabeling CRC stripping the PMD silently ignores such requests. Signed-off-by: Moti Haimovsky --- drivers/net/mlx4/mlx4_rxq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/mlx4/mlx4_rxq.c b/drivers/net/mlx4/mlx4_rxq.c index 39268ea..7a036ed 100644 --- a/drivers/net/mlx4/mlx4_rxq.c +++ b/drivers/net/mlx4/mlx4_rxq.c @@ -649,7 +649,8 @@ struct mlx4_rss * uint64_t mlx4_get_rx_queue_offloads(struct priv *priv) { - uint64_t offloads = DEV_RX_OFFLOAD_SCATTER; + uint64_t offloads = DEV_RX_OFFLOAD_SCATTER | + DEV_RX_OFFLOAD_CRC_STRIP; if (priv->hw_csum) offloads |= DEV_RX_OFFLOAD_CHECKSUM; -- 1.8.3.1