From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0058.outbound.protection.outlook.com [104.47.33.58]) by dpdk.org (Postfix) with ESMTP id D066C1B754; Wed, 7 Feb 2018 22:51:31 +0100 (CET) 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=ur4RaO0ctwxC6HqA9PO+6wfRjDW+/kKxTSKvDsRpL5o=; b=gds7ESfdaAqBMcZfgeXT6ExDsZREcie8Faq3V3AtgYDMMgaVwCo9HCr0Y2AwP3KrvJOxcAngfW1iyF7PBtIuGyYAOljmv18xDteWtkY6bRgo77UZFHd7sRjUJCZYL5Qd66+YmgoV0LW14xiae9YyUJoo4Gzaw8cJXxQHqZYznjg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Rasesh.Mody@cavium.com; Received: from cavium.com (198.186.0.2) by SN4PR0701MB3680.namprd07.prod.outlook.com (2603:10b6:803:4d::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.464.11; Wed, 7 Feb 2018 21:51:30 +0000 From: Rasesh Mody To: dev@dpdk.org Cc: Harish Patil , ferruh.yigit@intel.com, Dept-EngDPDKDev@cavium.com, stable@dpdk.org Date: Wed, 7 Feb 2018 13:51:01 -0800 Message-Id: <1518040261-20273-1-git-send-email-rasesh.mody@cavium.com> X-Mailer: git-send-email 1.7.10.3 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [198.186.0.2] X-ClientProxiedBy: DM5PR13CA0059.namprd13.prod.outlook.com (2603:10b6:3:117::21) To SN4PR0701MB3680.namprd07.prod.outlook.com (2603:10b6:803:4d::22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 715ca2b6-9c42-44a8-6de2-08d56e74f271 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:SN4PR0701MB3680; X-Microsoft-Exchange-Diagnostics: 1; SN4PR0701MB3680; 3:Y+TBrpBCKX6jM3Acs1Kh48o4LNW03BwzFINIwLY931anSlfZbOt1IH4iOyfgres0reOM97FWSF3/ecNrAO6eZLU1ieWqv9DN8kSujLUixc+oIpeS4oK6/kZEF6k3OjS305bvdrKkI4THiiDO9oYHS3xBAsHF7wkpGaD7jk2mRtab1WAa61O8QBGL6yqD4GAmMFDRCCbPDIX4hgpi+fqSft7ZNH6gRXsptv9LCcDh5kb4nfipIVa+RNuRnJQZEYBt; 25:GmKfp3VDLqsyWPkPH9tFPIdE9cXQgqmdWZrC0fQ+TUS0BVL7i3CGNO22Q88KAv6hWngjSmS1fh1DtLK0KBvwxnW/ntAYXVqItA6kQ/K16JJ4o5VT8my03kQwOV4xqU3feeW/mc7fqf5c9Usov/tZBjUTxyqHK0lMr08sBv+pxKxcrQ4SJAMvqNjExIr0TlYr6SclSc50krBpaZIM9U0/pTl6YiTF3CBUngH29KOe+I/2OSGE89KTkRPMgDFO7yu0pIISVXxVgqyOnzrLo8s60nMXD0yW8GgfKpxGTLR83X2nAIhN2unDQ/scz6w755LBDU4S9eL13ZQj4dDR9LUjDw==; 31:dviwas+lxVGiKK1MefYBITINdGb3HCMGl954o8GlNn45iLh/XGvun9Q2i4dIUQKMtewl52qW6R8xfByzKMQct1kEuLWn2zi/c0g1pmtMffriZ5vwFEj32ySIdS4r/MZlXsnCopsEcu/I6jdhFnL3LZu7hgb6svh0koZGtsuv0rYdvYDq3cJs8vCPE2WOrDCnmtM6kMiPTxnmc6cGzQckSPNhUoFkLO+dlYPvRlxHutE= X-MS-TrafficTypeDiagnostic: SN4PR0701MB3680: X-Microsoft-Exchange-Diagnostics: 1; SN4PR0701MB3680; 20:JAzJqiH1E3ZwV/94bQ2ODtA9PDoLa+lCVdZuq++2ZuZVA3w4IcI/Iq5eNd7fm9Qd2tKBLtXKS4oC8/P1r7wODi0SUzXz7D+M9u2cy3ux4yBbewDaHT05131oG1ZY0F53R3j5WLXxtyZ+USFWV/QMe3SEi9dQkOovD8ABN+gePWk0uVkiwRR4jKdoA35sWgb0qEtUSDnrAc1XdFUzcAUYaKuQ81NitAh2n0SeJshDRxXBbm66Ig+LH1Y3ZcopwvIqUfWV124UPzBsJqYURLZraxz1BPLH7bBICwehGqEi+5J2w+Nm0SD8RRPyemvZWb6tWDGgPw7HMaSyhwRCFRsQnoyZfjRpj/YZiUOuVQm7RDus6B3FOiIKsmuOS0pdFp2Qs6ZpTdYJWe1uxxiM/XNcwKcNqHqN2c3ckQ/Z922ETVBdBi6dIqrScd0+QCVXSaQHMI2KQZ069sybJjfQt6Brw2+0o08RNQMu6w0iM/Ec7ImCUw4gpTQTdQ6TXYi9Kzhq; 4:a1yaHavaztyM+tFqk0wzDh4aVthluK7WjR/bfcryGwWTbdxw1GpPFLRKIz6ubmZmjZJom8wACAeNMKfVVkAmU0nLHWjcDeK/1UCYBQ3nI+xsEy7JtqNOLFp10MaDCBD7inwIjItgpwrqd6yHWJrqB/p50Romle3trDqXkPuf/BmiSpzoa1okCpbDq1014eKqSkhLs/m3b74wO1ond4EEVb7TSXmyH/Y3mpMScNLqeg5sY1wYES4G/RpvQqXj9mmQ1UGHAkp1XJLL+3YaWHL2iQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93001095)(3231101)(2400082)(944501161)(6041288)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123560045)(6072148)(201708071742011); SRVR:SN4PR0701MB3680; BCL:0; PCL:0; RULEID:; SRVR:SN4PR0701MB3680; X-Forefront-PRVS: 0576145E86 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(979002)(39380400002)(396003)(366004)(376002)(346002)(39850400004)(199004)(189003)(478600001)(72206003)(106356001)(6116002)(69596002)(2361001)(2351001)(68736007)(25786009)(1857600001)(3846002)(4326008)(21086003)(66066001)(6916009)(26005)(47776003)(16586007)(2906002)(316002)(8936002)(305945005)(186003)(16526019)(7736002)(105586002)(86362001)(55016002)(36756003)(575784001)(51416003)(52116002)(7696005)(50226002)(4720700003)(5660300001)(53936002)(6666003)(8676002)(81166006)(48376002)(81156014)(50466002)(97736004)(386003)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN4PR0701MB3680; H:cavium.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN4PR0701MB3680; 23:bRRiZk2bv4aCD1Lz5Fo6Rp86vHoHcVZW+S7+si2?= =?us-ascii?Q?9zyaVRs/K+JL46duHEUH1kGYJ5AA26hROC2qermdMs7BoZcqdbt5kzgp+WoP?= =?us-ascii?Q?KzyHViuPgPCjMTFyCtufAuQSHyS9HVc/tX0d7CpeuihWBNYq0r+1pEJfJPY1?= =?us-ascii?Q?A1Wrdwrd2inHIF7qykENXrcCt4Dj9yenfqK85Rt/IMWcsBpjXZ4pqWQoFuVV?= =?us-ascii?Q?8F6oS7FI+dM8aW8gkU+mrQfZouNBAbFk17TmseESfscQgs266KKoaXFHQaGq?= =?us-ascii?Q?xCRgeazJ4jh2k2WC0iyYO86PaqcQg2nY0TgUNcNe4nVwxK+BsGAum9vlZ+Af?= =?us-ascii?Q?XwPNGDs7VVfy5rvtIwLAJECgyADpbCrfNqs9Rj0WoBxOstttj2UppPdpuPPI?= =?us-ascii?Q?TU5v7JEyZ0zthaTSZK1EYOgT9Pp8v/u7J4XlxLLSNrQYvV5gbp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E=3D?= X-Microsoft-Exchange-Diagnostics: 1; SN4PR0701MB3680; 6:flD62JzJxmVS5RmfpU3qeQAyMaKuRtZtX+a1FClhvD5E+wjw5mQuoeyr0z+5lf2QJSq10xWXyrxMoTdYAXcm645dxnXfjfeCVyhTVr6DpAp76qfQItFEy5ET6CREkQiDjZYCIWJzheESemFfjM9VTGZafc8maITFkxR91NECEls5M1Hn1Zh3kiTT1Bc2rD6ELJ8z4xNupr67z3Vk8UqVZpD+Wx7gh1l9C21eUiSd2xT3OhwPmDm4wmJkpMLE0W7hEXtjRFO6eKZBFGiSAMhEVzLf4yFUkihUnIy/fZbMe8eJJQpz1PAFVyNxp/TV5bvqcgynYmU1FNXEZOJe7/ZioREIrxCDXFAMpC8OnAwFX4A=; 5:BCSE+PuJMjmZJ8cZmUyeKGOz6U+Xg2GZIniBm62FCMXeD0deGFEgkkSBVJ3JzvxlN21ThOVUcHOSGTunZUv/aE0bd8mq4HqTlDrXOOWZWRepFFPMi3rvibwClcH8EUfyesgsz1ffFYX7CBwYkJ6CV4T2xPNvXCHqTlObI4DinmU=; 24:+iDesHoHVbY9vdiKVWadyC3LjDApSaNuIOJeMr7smjhfAGxGyvARRDByw70+egLzyvNMd2CgbeIQ0SNll4OBzUkZ3Sn9NMNm9N1CgQHAt00=; 7:ptoYMlGc2kiUUx1gClKvI34cG9Lue/6CrXBkRasKK75L0qlzYkF5Qsnii45YvqG5CDOSKG3gXIUbpvblMSLOgJFyzADQvmaoG6q/DwACp5ITLj6mxDTLi4ak4EVsCvf/+prnj9AwR/YqvOTSuMrt03ibLbwK7U8OmxPKVXqERuvzB/WTXM4Ss1glxJ7r8xrEjRjmPkL2qtnTjb/nKVsyP9Twa25fFc/Hgh88JpAW8ADTm5ngpngseIEOb/pi9CdL SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Feb 2018 21:51:30.0418 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 715ca2b6-9c42-44a8-6de2-08d56e74f271 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN4PR0701MB3680 Subject: [dpdk-dev] [PATCH] net/qede: fix tunnel init params 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, 07 Feb 2018 21:51:32 -0000 From: Harish Patil Add the missing VF check to initialize tunnel params correctly. Fixes: dd28bc8c6ef4 ("net/qede: fix VF port creation sequence") Cc: stable@dpdk.org Signed-off-by: Harish Patil --- drivers/net/qede/qede_ethdev.c | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/drivers/net/qede/qede_ethdev.c b/drivers/net/qede/qede_ethdev.c index 46e0e36..a91f436 100644 --- a/drivers/net/qede/qede_ethdev.c +++ b/drivers/net/qede/qede_ethdev.c @@ -3123,16 +3123,22 @@ static int qede_common_dev_init(struct rte_eth_dev *eth_dev, bool is_vf) adapter->vport_started = false; /* VF tunnel offloads is enabled by default in PF driver */ - adapter->vxlan.enable = true; adapter->vxlan.num_filters = 0; - adapter->vxlan.filter_type = ETH_TUNNEL_FILTER_IMAC | - ETH_TUNNEL_FILTER_IVLAN; - adapter->vxlan.udp_port = QEDE_VXLAN_DEF_PORT; - adapter->geneve.enable = true; - adapter->vxlan.num_filters = 0; - adapter->vxlan.filter_type = ETH_TUNNEL_FILTER_IMAC | - ETH_TUNNEL_FILTER_IVLAN; - adapter->vxlan.udp_port = QEDE_GENEVE_DEF_PORT; + adapter->geneve.num_filters = 0; + if (is_vf) { + adapter->vxlan.enable = true; + adapter->vxlan.filter_type = ETH_TUNNEL_FILTER_IMAC | + ETH_TUNNEL_FILTER_IVLAN; + adapter->vxlan.udp_port = QEDE_VXLAN_DEF_PORT; + adapter->geneve.enable = true; + + adapter->geneve.filter_type = ETH_TUNNEL_FILTER_IMAC | + ETH_TUNNEL_FILTER_IVLAN; + adapter->geneve.udp_port = QEDE_GENEVE_DEF_PORT; + } else { + adapter->vxlan.enable = false; + adapter->geneve.enable = false; + } DP_INFO(edev, "MAC address : %02x:%02x:%02x:%02x:%02x:%02x\n", adapter->primary_mac.addr_bytes[0], -- 1.7.10.3