From 924b32118c79c7fc6ade07654626a1bf7912da37 Mon Sep 17 00:00:00 2001 From: bluhm Date: Wed, 7 Jun 2023 18:42:40 +0000 Subject: [PATCH] Rename ifconfig tcprecvoffload to tcplro. It is shorter and more consistent. discussed with jan@ mvs@ chris@ claudio@ dlg@ --- sbin/ifconfig/ifconfig.8 | 8 ++++---- sbin/ifconfig/ifconfig.c | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/sbin/ifconfig/ifconfig.8 b/sbin/ifconfig/ifconfig.8 index 3f03ddf6d9d..944823793fd 100644 --- a/sbin/ifconfig/ifconfig.8 +++ b/sbin/ifconfig/ifconfig.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ifconfig.8,v 1.396 2023/06/01 18:57:53 kn Exp $ +.\" $OpenBSD: ifconfig.8,v 1.397 2023/06/07 18:42:40 bluhm Exp $ .\" $NetBSD: ifconfig.8,v 1.11 1996/01/04 21:27:29 pk Exp $ .\" $FreeBSD: ifconfig.8,v 1.16 1998/02/01 07:03:29 steve Exp $ .\" @@ -31,7 +31,7 @@ .\" .\" @(#)ifconfig.8 8.4 (Berkeley) 6/1/94 .\" -.Dd $Mdocdate: June 1 2023 $ +.Dd $Mdocdate: June 7 2023 $ .Dt IFCONFIG 8 .Os .Sh NAME @@ -501,7 +501,7 @@ Query and display information and diagnostics from GBIC and SFP modules installed in an interface. It is only supported by drivers implementing the necessary functionality on hardware which supports it. -.It Cm tcprecvoffload +.It Cm tcplro Enable TCP large receive offload (LRO) if it's supported by the hardware; see .Cm hwfeatures . LRO enabled network interfaces modify received TCP/IP packets. @@ -517,7 +517,7 @@ It is not possible to use LRO with interfaces attached to a or .Xr tpmr 4 . Changing this option will re-initialize the network interface. -.It Cm -tcprecvoffload +.It Cm -tcplro Disable LRO. LRO is disabled by default. .It Cm up diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c index 1ae9a90bb82..f45fb7ebc29 100644 --- a/sbin/ifconfig/ifconfig.c +++ b/sbin/ifconfig/ifconfig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ifconfig.c,v 1.465 2023/06/01 18:57:54 kn Exp $ */ +/* $OpenBSD: ifconfig.c,v 1.466 2023/06/07 18:42:40 bluhm Exp $ */ /* $NetBSD: ifconfig.c,v 1.40 1997/10/01 02:19:43 enami Exp $ */ /* @@ -471,8 +471,8 @@ const struct cmd { { "-soii", IFXF_INET6_NOSOII, 0, setifxflags }, { "monitor", IFXF_MONITOR, 0, setifxflags }, { "-monitor", -IFXF_MONITOR, 0, setifxflags }, - { "tcprecvoffload", IFXF_LRO, 0, setifxflags }, - { "-tcprecvoffload", -IFXF_LRO, 0, setifxflags }, + { "tcplro", IFXF_LRO, 0, setifxflags }, + { "-tcplro", -IFXF_LRO, 0, setifxflags }, #ifndef SMALL { "hwfeatures", NEXTARG0, 0, printifhwfeatures }, { "metric", NEXTARG, 0, setifmetric }, -- 2.20.1