From nobody Tue Jul 11 16:45:33 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4R0mvr3gQFz4lJbX; Tue, 11 Jul 2023 16:45:44 +0000 (UTC) (envelope-from pkubaj@anongoth.pl) Received: from mail.anongoth.pl (mail.anongoth.pl [46.248.190.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X448 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "anongoth.pl", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4R0mvr0DTTz3pyj; Tue, 11 Jul 2023 16:45:44 +0000 (UTC) (envelope-from pkubaj@anongoth.pl) Authentication-Results: mx1.freebsd.org; none Received: from anongoth.pl (unknown [192.168.1.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: pkubaj@anongoth.pl) by mail.anongoth.pl (Postfix) with ESMTPSA id D45C71558C6; Tue, 11 Jul 2023 18:45:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=anongoth.pl; s=ANONGOTH; t=1689093934; bh=WwvuGkpfhVl9hScivPyVLKpcwg5KnxRjH9u9sapBo3M=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=k9QI6aUlW7bDtNch0jJKRfBwpMek4+EDOubFB57cRcte+hamPnXa9YjAbbmL48z8G Hjbym1iOlFuTD4zIA5BZbWarpamgNHXDJj/+iGACGzQ/vUbljKLXv+45Nctfcl94U0 ri1+DvL58dRNVIPcqERjLt5nrJR6kGRiip3+8Xr+3XVGQ72cTBaOGTjgpRvWWwzbur mmISfcu9xZLW1dOxfOq3DeF2q1gYJh3ntaugN056Gpj9ZGH1tDrIvW0vKoV6vRbmp6 UmAlIGrlFKoeMdivLhbJGiRG6156mjEuC5XhewnlrYUFCzHsU9aQhdRoye/nWp+I2B QlLQgdBKShGKg== Date: Tue, 11 Jul 2023 18:45:33 +0200 From: Piotr Kubaj To: Navdeep Parhar Cc: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: Re: git: a0302c923150 - main - ix, ixv: Update link status with autonegotiated baudrate value Message-ID: References: <202307111619.36BGJYdv023721@gitrepo.freebsd.org> <1e24a398-2a92-b84e-a5c6-710dc277fe51@FreeBSD.org> List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="hkD8xVjIhsAJGigs" Content-Disposition: inline In-Reply-To: <1e24a398-2a92-b84e-a5c6-710dc277fe51@FreeBSD.org> X-Rspamd-Queue-Id: 4R0mvr0DTTz3pyj X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:47544, ipnet:46.248.160.0/19, country:PL] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N --hkD8xVjIhsAJGigs Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 23-07-11 09:34:08, Navdeep Parhar wrote: > On 7/11/23 9:19=E2=80=AFAM, Piotr Kubaj wrote: > > The branch main has been updated by pkubaj: > >=20 > > URL: https://cgit.FreeBSD.org/src/commit/?id=3Da0302c9231502bae8f43edbd= 5fb8d73132eb8da7 > >=20 > > commit a0302c9231502bae8f43edbd5fb8d73132eb8da7 > > Author: Piotr Pietruszewski > > AuthorDate: 2023-07-11 16:14:26 +0000 > > Commit: Piotr Kubaj > > CommitDate: 2023-07-11 16:14:26 +0000 > >=20 > > ix, ixv: Update link status with autonegotiated baudrate value > > =20 > > Use autonegotiated link speed value while updating link status > > to iflib. > > =20 > > This patch is part of change made in NetBSD kernel > > by Masanobu Saitoh, NetBSD maintainer. > > =20 > > Differential Revision: https://reviews.freebsd.org/D19176 > > Approved by: erj > > --- > > sys/dev/ixgbe/if_ix.c | 3 ++- > > sys/dev/ixgbe/if_ixv.c | 2 +- > > sys/dev/ixgbe/ixgbe.h | 2 ++ > > sys/dev/ixgbe/ixgbe_osdep.c | 33 +++++++++++++++++++++++++++++++++ > > 4 files changed, 38 insertions(+), 2 deletions(-) > >=20 > > diff --git a/sys/dev/ixgbe/if_ix.c b/sys/dev/ixgbe/if_ix.c > > index 0179c6456de8..09c0a82279ed 100644 > > --- a/sys/dev/ixgbe/if_ix.c > > +++ b/sys/dev/ixgbe/if_ix.c > > @@ -3679,7 +3679,8 @@ ixgbe_if_update_admin_status(if_ctx_t ctx) > > /* Update DMA coalescing config */ > > ixgbe_config_dmac(sc); > > /* should actually be negotiated value */ >=20 > This comment should have been deleted too? Thanks, fixed now. >=20 > Regards, > Navdeep >=20 > > - iflib_link_state_change(ctx, LINK_STATE_UP, IF_Gbps(10)); > > + iflib_link_state_change(ctx, LINK_STATE_UP, > > + ixgbe_link_speed_to_baudrate(adapter->link_speed)); > > > if (sc->feat_en & IXGBE_FEATURE_SRIOV) > > ixgbe_ping_all_vfs(sc) --hkD8xVjIhsAJGigs Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEycyIeNkkgohzsoorelmbhSCDnJ0FAmSthy0ACgkQelmbhSCD nJ1urhAAhwugy4vzFkyM/nQXK+gvRx+Ai07nWg2yX7cl82jCJsaHAAAN69KXK8m5 dGRCJmUliWwNz7SnEswvABYkfQEtHvkgo2gDEznVmLfo1DrfeWTO8D2gwBeL++Ao HPrYAgVrU2U7jGZVK4Tq7AWDiVdKqF7a73E6dYbN6mgdUthQmlJV3mnk9uyC8a09 xNxD/lrp1d8gIAjxPfsD0t0xPB5ZTwYWC05uMLBRuLoEzm0Kx6GFHVwzYtaLK2m1 CVDTv+Bt9NNOkjFtbAFSyoPGCEplIEQJ9VdVtge9D2Ly/Gapg2/sJIh6081km8rJ XFAlcVBl3ro6AyryCT2bpzkfCgzne3wJ/f+3uCFePBfLBINg8DydyNYBuNN3CoSb Ru8CTy8048kBB2tKNhv+TgWAP7r4VNxAzp+L9cPcCNXLcbxrlZ9v58O4esfTGn8x BJ9BfO9Avz2mU3aR3gdRVhv/I/Wui9VIn7tHlOH7R/0P1hjpgCKpD8sZpBBEieGW 4X54K1E/hMPFyq+X5srsByy1siSJ2KDjIvHZEIPK8jAz0D/zEdeDPpY+asGQIkEC iBIZDwh5p0ROax6mQyf2AGsJF822Nlg8ueqOxgsAhZxJ91GiXrGMGhURTMHKAWbW j0QHvtcQGiooMO/hXUV9i3cxAzutL2kS04ARwUijvZKxvEuVcUA= =SJJE -----END PGP SIGNATURE----- --hkD8xVjIhsAJGigs--