From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0087.outbound.protection.outlook.com [104.47.37.87]) by dpdk.org (Postfix) with ESMTP id 9668923C for ; Wed, 2 May 2018 10:47:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=/iwauCHyrf+n3TLWYGtSYnJ8uNVeRDayZwUlaJE1asM=; b=UlQIH0TqaGv2+4tb+to7qFdE8iiocBERkBpXB7ce49XbDu4eZW3wMMuu0Bx2CH0WfND5+HksjeoFOUbhGY1QzEHA2YcqxHoHMpsnCG5S0tUbSQ17lRS3gz4Zd2UQBcCxtoZ0ClakESi75MKCyfrUDSBYAzPPerXGPkeCZtJJGLQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Ravi1.Kumar@amd.com; Received: from wallaby-smavila.amd.com (202.56.249.162) by CY4PR12MB1510.namprd12.prod.outlook.com (2603:10b6:910:9::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.715.20; Wed, 2 May 2018 08:47:50 +0000 From: Ravi Kumar To: dev@dpdk.org Cc: john.mcnamara@intel.com Date: Wed, 2 May 2018 04:47:24 -0400 Message-Id: <1525250844-127252-1-git-send-email-Ravi1.kumar@amd.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [202.56.249.162] X-ClientProxiedBy: BM1PR01CA0110.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00::26) To CY4PR12MB1510.namprd12.prod.outlook.com (2603:10b6:910:9::19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:CY4PR12MB1510; X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1510; 3:C/x/WcSrbltObjZt5nROJ2hsQ/bc/YGVFJROylfQaxNDK9rxorqfW0X7JUr2gzZlz+DJuiiNO1Y6z+7LJFP0xRk26KbAOUcRAHwMEgxcqQMqD0e7+MO0Q4CupE0jf3a0jsvi3kgUVX36u2Q087Ee1spO/6sLcnardr1wfyOLsNWv1OE8ctHWtwmUvHAlmHtUvsgpEs3s/n9RqxgTO9Y557jSZ2JZsBvl/QBlTI3MbdjWngJKgAtpjq03gyTF6PE7; 25:dolq0hjQPJMmShmhLoth9+7K6Wc0BdlBSriwbFWEi92bLd/sFvAwXG2uGGCoDLsG7yTot+8xqsxPO68AW++SjxpN3PQgsRXSZ84nHhYdtN+/MxdBptUo8bFS2/NOhsBmp/YEoHs/kohivlI3EA8yrYDduJ2y3fuTo2RNlvglmxqwOe9B/k2js52ZlbrWsBd09fvl57AxFI6S0Z78rv3Z8kPz9d/+aESjYt2xxiX5W6zXCigw0A+Q4sF7CTtmP+MJSan9HsxZIUa8rznDty6xTH/TUBGKdnX+/QxPzuKc5nQz293ZxKZ3tS1DgWp6F7915F5SmPlMzGzkjmYJnCKh6Q==; 31:jI7+92LkVyJE78Fmal4WHpLx+bqwi3hdl4BclqDviALTsgwkagQatf7EVWbWRu5BIMWqXGwgTHUlsbA+m73t2H3y7Aqr+zZKQyIPb5SVH35Tqjny7iw7YnKCCJuaRAYwf+hnezid3BZpb6MJs/7GxqXLdH3CwwnIt0k5rfTFUM8tnLXbg+FGDCxswIBpdG+BoG2wIw9LaJDVzbHBJ/PjTWGZjmvADUVbNTh5RDtX/HQ= X-MS-TrafficTypeDiagnostic: CY4PR12MB1510: X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1510; 20:mAx7Ns4Nf046y4jBqk8KlD/R3XPVyzuicxz5rZUoqze23cgwzUduMmOMYTCcor7cYiGwbdRmRGw/vhm5M8hZ5l1fIag5OphIFjLb3DiNUsbTUaEFmxqAtd2NzyWBOphD3PSOWnNPk+efLgSzj+Yun4ywXSZ2W06ZfsO31mrWeBJDBocq6vmfo65Q3yrqBOn7NlNoPB+Qft3nibM3hZcqlf8y41tVymut+dj95y64eKdV73xg0jmDNuZvYlmBb2YxjCdSKyGO9w5ugtEvD0HbzIwD8g3MsmPfzOTkm9+EhQfHSeuRnkN1ekyeorKP1NjVCLjGpoDeErXhryYur3wykjMi8RHVBYggD6k0dr+302/0KG+kOIUSHUcMs3y3oEJoSfjIYW4gN60CkR6JuTUcfqiH3vxcHqx/INqhKmAhd+6u/66okgBqAjeB1J5W5FVsrhL7cHAIA/oKGgGP4pOBw8emjyj2faNMYyNKk0myVmZZ0c5iG1+CgzvKOdPuKvep; 4:xpikvjsRXNDOIEdciAUkxMA6b0/36Mj0KnaQsOF+HJxx+YmBVNZGi9DK5o36VaBlZ+5Fu8FjWo3wi7+3HObnJ6fO5o+/y85b8gk4zGdBWRJJq35+K+8tC1zVOCBsRC10bJxK2CWLdgOOBYu72Anu9RLqSQXsJuPTwmekZqa+Em2BzPGfW/7jB1GZjPdbUJCOY96R5SgH4ALn/npXXy5zcL5aYQTeZjcs27mrWo8si2z05Ahfd4GYCzNMXv0yyR9GqmwyYNlNoK7zjuIGMj7PMEXYlWtu36XA2Jgdrf4UgoNp78ZN2wIiAAUQkCnCUhOU X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231254)(944501410)(52105095)(93006095)(93001095)(10201501046)(3002001)(6055026)(6041310)(20161123564045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011); SRVR:CY4PR12MB1510; BCL:0; PCL:0; RULEID:; SRVR:CY4PR12MB1510; X-Forefront-PRVS: 06607E485E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(366004)(39860400002)(39380400002)(396003)(376002)(5403001)(189003)(199004)(6666003)(3846002)(305945005)(6486002)(16586007)(6916009)(476003)(8936002)(105586002)(81156014)(97736004)(6116002)(956004)(1857600001)(5660300001)(53936002)(25786009)(2616005)(2906002)(81166006)(72206003)(2351001)(486006)(50466002)(48376002)(8676002)(53416004)(7736002)(7696005)(16526019)(186003)(386003)(26005)(68736007)(2361001)(86362001)(4326008)(66066001)(51416003)(478600001)(52116002)(50226002)(36756003)(316002)(106356001)(59450400001)(47776003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR12MB1510; H:wallaby-smavila.amd.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR12MB1510; 23:GPfGzYNCb3DtFEbJxqTd+AO+wYr1b+qRerqLGiHkD?= =?us-ascii?Q?1/7tKJ/7DD3IBEPy8qu7xkLefZFIUx7DxmcYKnSdrySL8NY4GBc3f3d7QGqm?= =?us-ascii?Q?ehRloXTxV5rZU5GMhVxkhmjC6AFTXpbjfjKly8hV3Zn+q8bYjs1I2rayLpgP?= =?us-ascii?Q?0B03N3B+G9cgT9htkO6fHsRM0nIkNF1zVJGdjAUFJKy77wi53JpphZyJW6s8?= =?us-ascii?Q?4V5jlQ6t+h3mkuCkZqsqRjUTgM2mPZLk6yhAx+s+WaEktXcEngAXC1Cvauqm?= =?us-ascii?Q?d53iF9hjgk+CSbNFhY9qpkgL2eL6FwhusUvpV40ussa3Z8HtkGB1IO3eU7aZ?= =?us-ascii?Q?CPtioJ3hHoTNUk4y6bpERtkrpmCrI2x/cFE7lqENqi0hJEz7njDFCNzWZIY0?= =?us-ascii?Q?JpaeHCnsaJ1LkEUOyybhSk05YYUszCMxsRsqf4qxeuYzm0bELQ5ZXNFpRVII?= =?us-asc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p8yNP5xBHXkRMX5P3ABeYbw8w/KGWTc7FOuNyvvduzt0dr7Jtu50M2PvmXqdOx5hZG04Bqz8kPMOB3CiK6mF4Fo5eot2q0W5zxDadp2BJXo6tLdTvuuE/egugSQ5mgtlKbVJXsxcnVi1ueMr9lpULHMsF1FTlNYKtLwJz3AvV/hjg4J2d/NsPFbLB1Xu50rDhljH7+e6P14+1xk6nbrMneMKI; 20:UgJEMHBY4OXpegX+/Sx0Z1LuOyku4d3mrJRGM/Nu/Qjv6+yrcznBUZqn7BMFDrX4Pp2MyB7cg7gEI7qpkhCu8j+vRf0Wy0T2Ys/LaxfvBmZmAeSuIKr3mBksmFQAJ0euioe9ZWo1hNKZAtyDO+K1T5Un/zdt1S4Q95Dr5v6NvWWxtj8KxThgU7bYQdBMAYfAgDLlVG8A51SDlMhCFt9rQEivCb2jvqFX84eSK81sZOaG+8fecq9diHpDm5ijZ0l7 X-MS-Office365-Filtering-Correlation-Id: 0cc57fd4-b00a-450f-e3a7-08d5b00963af X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 May 2018 08:47:50.5365 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0cc57fd4-b00a-450f-e3a7-08d5b00963af X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1510 Subject: [dpdk-dev] [PATCH] net/axgbe: fix coverity issue 277239 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, 02 May 2018 08:47:54 -0000 Stored register value to enable jumbo frame was always overwritten. Assigning value based on rx_buf_size. Signed-off-by: Ravi Kumar --- drivers/net/axgbe/axgbe_dev.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/axgbe/axgbe_dev.c b/drivers/net/axgbe/axgbe_dev.c index d05f9c8..707f1ee 100644 --- a/drivers/net/axgbe/axgbe_dev.c +++ b/drivers/net/axgbe/axgbe_dev.c @@ -1019,7 +1019,6 @@ static void axgbe_config_jumbo_enable(struct axgbe_port *pdata) unsigned int val; val = (pdata->rx_buf_size > AXGMAC_STD_PACKET_MTU) ? 1 : 0; - val = 1; AXGMAC_IOWRITE_BITS(pdata, MAC_RCR, JE, val); } -- 2.7.4