From patchwork Tue Dec 12 00:51:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Chan X-Patchwork-Id: 13488262 X-Patchwork-Delegate: kuba@kernel.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="CaCh1NWV" Received: from mail-qt1-x82e.google.com (mail-qt1-x82e.google.com [IPv6:2607:f8b0:4864:20::82e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8695299 for ; Mon, 11 Dec 2023 16:51:54 -0800 (PST) Received: by mail-qt1-x82e.google.com with SMTP id d75a77b69052e-425922f5b89so34917861cf.0 for ; Mon, 11 Dec 2023 16:51:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1702342313; x=1702947113; darn=vger.kernel.org; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=/FQLSzIEljtj9qMhFQjt2/nf1M48P3DkoQUJaRn/gds=; b=CaCh1NWV+x1gxRN8ZN9LnrBSNgTEisY8LixjAR/9k9hbpfwWTdiISGm8LDXChfOEfL Au8+5JLzpdV8RkbhPoEqW/w2CCZKu1sdLixYeKfYCh8PbUnQOcLqQ4qByBBXVDD1Yulj ATyzNWUVRiUfAK/IoodvZFLsJmz61AslPlYZI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702342313; x=1702947113; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/FQLSzIEljtj9qMhFQjt2/nf1M48P3DkoQUJaRn/gds=; b=EfZH44348LxaURXZwXhV4/Hx1QbK9linGLHMG44eSxM6YC1dKSbrKQTQRvPMFyTKaO 5XYEoaFgDxCpYC0+9e9N9zyCgHbKzq0f1fpstQ7Ip6bQrqDWiVwvkCv+AdidDdkQIE5q 79fFY7+m3WQ1zHrkvZlQCbmxvnkz6kNrsxZhda+gn1Fn/l0qy/JasM3+VDPs9d2Q81re TYxsn+1QgYQMKgB3alvSdCOXaneTOh1xfa5P6R5kMqI5fFzSLlz822DdPmj8ZpV8xWF+ mNxwQFUfOj9x+IjnbBRh6i1Ea6joLfdD+Aa779mjzrrqEpk5spNLGdtP+YE7uAiOml0j flnA== X-Gm-Message-State: AOJu0YzCJb6DpfDIOp2hLqOv7Qa2f2SCTeHbg8FBRk+6yMqwfYaNzRYM 2s4EoEimdyo1od43dnSuliHRqA== X-Google-Smtp-Source: AGHT+IF2ZB9iePLPYmeFIEQadMXffBZSqzyZJWP9CSnZOGyTlqau4Szhp9m48F6Cu8dgDKCZ14UlsA== X-Received: by 2002:a05:622a:30e:b0:425:9e14:3f1f with SMTP id q14-20020a05622a030e00b004259e143f1fmr7339755qtw.120.1702342313585; Mon, 11 Dec 2023 16:51:53 -0800 (PST) Received: from lvnvda5233.lvn.broadcom.net ([192.19.161.250]) by smtp.gmail.com with ESMTPSA id r5-20020ac87945000000b00423ea1b31b3sm3619664qtt.66.2023.12.11.16.51.52 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Dec 2023 16:51:53 -0800 (PST) From: Michael Chan To: davem@davemloft.net Cc: netdev@vger.kernel.org, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, gospo@broadcom.com, Somnath Kotur Subject: [PATCH net-next 07/13] bnxt_en: Use proper TUNNEL_DST_PORT_ALLOC* commands Date: Mon, 11 Dec 2023 16:51:16 -0800 Message-Id: <20231212005122.2401-8-michael.chan@broadcom.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20231212005122.2401-1-michael.chan@broadcom.com> References: <20231212005122.2401-1-michael.chan@broadcom.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org In bnxt_udp_tunnel_set_port(), use the proper ALLOC commands instead of the FREE commands for correctness. The ALLOC and FREE commands happen to be identical so this is just a cosmetic fix for correctness. Reviewed-by: Somnath Kotur Signed-off-by: Michael Chan --- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.c b/drivers/net/ethernet/broadcom/bnxt/bnxt.c index 42a52ee8c1bc..f2e8904de97f 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c @@ -13673,9 +13673,9 @@ static int bnxt_udp_tunnel_set_port(struct net_device *netdev, unsigned int tabl unsigned int cmd; if (ti->type == UDP_TUNNEL_TYPE_VXLAN) - cmd = TUNNEL_DST_PORT_FREE_REQ_TUNNEL_TYPE_VXLAN; + cmd = TUNNEL_DST_PORT_ALLOC_REQ_TUNNEL_TYPE_VXLAN; else - cmd = TUNNEL_DST_PORT_FREE_REQ_TUNNEL_TYPE_GENEVE; + cmd = TUNNEL_DST_PORT_ALLOC_REQ_TUNNEL_TYPE_GENEVE; return bnxt_hwrm_tunnel_dst_port_alloc(bp, ti->port, cmd); }