From patchwork Tue Apr 2 16:29:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 139018 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 18CB843DC3; Tue, 2 Apr 2024 18:31:10 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 011F1402E7; Tue, 2 Apr 2024 18:31:04 +0200 (CEST) Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) by mails.dpdk.org (Postfix) with ESMTP id AF8F54028C for ; Tue, 2 Apr 2024 18:31:02 +0200 (CEST) Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-6e6f69e850bso5969520b3a.0 for ; Tue, 02 Apr 2024 09:31:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1712075462; x=1712680262; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=NiYpX4EzUhhWVvRT7tHhvtHeqSwKWLQObxUi1OSqmZE=; b=fiYbVSUWLrcd2imW5YRoPFJzaFtPMfjW3lX9fNg+EgQxmhHlFhQ2YaUhl10Y7OPHhD SBvSj5vA0Cf+k+EnB02EaYWa5T3Wsr/Rsu5eTe0SxP96g9vCJ6DvIVp9Mb2IuIJxzWhh dytI3XwN4hE0Wt3nyiG5hS/JJ1Ddv8yEFjPRNqnUGE+I7L/aRz8f45FX7taioxhoAFOL 1FjmIWFDXgFEmbR/sL515Jp/uVKqKqcAcJYMvOcBtrSh1dAVsYXrNNiRtJBzsQJnbhKO 2DsKhTUTzgbLIKIickR0N8I2VyPZ46BGHqrV58LOVBAK6mT6RJbQOwZMw/8JCdfwWuqJ gL0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712075462; x=1712680262; h=content-transfer-encoding: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=NiYpX4EzUhhWVvRT7tHhvtHeqSwKWLQObxUi1OSqmZE=; b=XFjTmoWYLW1FyqxSyaJD+l9c/YpEyP2FuXNXhOQmC8qYHt36eiWhPIjahmv4Az+kMc nVANoxySEwYn9HWmH8umxtgBqoAJ7qO15+GHvnh37/LXnRTABJnRQiY3rAKkP/rL5x1U rsEYqWrY5/zrTn2GfW5Et3xzOf1gBShd2D1tdJan7h1yNh2/uvrTvfYzTbr3OeP4ppSr NYV0DSWhPPjfy8Y7+wMSPRYoh5N6mkBZesXnAUL9+lM2NZT7Lf1oJ2VxMNuTEH2nTQx4 r9H8qoNcbNK7XpZtKl4E/BLKKnqYZ7FeX+c4G+3MUT7lW8mYAPBZmmdbsWmz2NXCamDz tOPw== X-Gm-Message-State: AOJu0Yyv0LPZaS3SV7pzzKMDSHxuoevVRPUsOkjgqOwXkuN4pfr7eHCi sP6v7GdxLMmnkj1s2MML7qVw6gREnNHvYCLrOXWczbT5gUlWC5kKe8JDvwbwW9Ajt7L3gJdyjya m X-Google-Smtp-Source: AGHT+IHCrK/bR65UrS9wgzvqkXyOm2h6TFmaOtwbPT0E8EdYrNMYSjpy69V8h6iMDNq7JNK6uXsuog== X-Received: by 2002:a05:6a00:420d:b0:6e6:9942:fd97 with SMTP id cd13-20020a056a00420d00b006e69942fd97mr357533pfb.15.1712075461866; Tue, 02 Apr 2024 09:31:01 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id y7-20020aa793c7000000b006e6fd17069fsm9954857pff.37.2024.04.02.09.31.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 09:31:01 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH 1/4] doc: remove references to ifconfig Date: Tue, 2 Apr 2024 09:29:33 -0700 Message-ID: <20240402163050.133923-2-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240402163050.133923-1-stephen@networkplumber.org> References: <20240402163050.133923-1-stephen@networkplumber.org> MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org The ifconfig command is legacy and may not be supported in some distributions in future. Replace by current ip command in the documentation. Signed-off-by: Stephen Hemminger --- doc/guides/linux_gsg/linux_drivers.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/guides/linux_gsg/linux_drivers.rst b/doc/guides/linux_gsg/linux_drivers.rst index 852a60f5c0..7f53ca3bae 100644 --- a/doc/guides/linux_gsg/linux_drivers.rst +++ b/doc/guides/linux_gsg/linux_drivers.rst @@ -375,7 +375,7 @@ Such model has the following benefits: - It is secure and robust, as the memory management and isolation is done by the kernel. - It enables the user to use legacy linux tools such as ``ethtool`` or - ``ifconfig`` while running DPDK application on the same network ports. + ``ip`` while running DPDK application on the same network ports. - It enables the DPDK application to filter only part of the traffic, while the rest will be directed and handled by the kernel driver. The flow bifurcation is performed by the NIC hardware. From patchwork Tue Apr 2 16:29:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 139019 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5724243DC3; Tue, 2 Apr 2024 18:31:19 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9585840647; Tue, 2 Apr 2024 18:31:05 +0200 (CEST) Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) by mails.dpdk.org (Postfix) with ESMTP id 7546F402E5 for ; Tue, 2 Apr 2024 18:31:03 +0200 (CEST) Received: by mail-pf1-f172.google.com with SMTP id d2e1a72fcca58-6e88e4c8500so4292703b3a.2 for ; Tue, 02 Apr 2024 09:31:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1712075462; x=1712680262; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=LYZ/HV8FfMSNOILFIyzwQtDavvt6XCAuN5X6pv4vjAg=; b=lkmYgJ5RfPPtw+uxqhXNE8yWFhfGH8bRgXyGZ4EYduD7bww3/a8jLDk5F4A6e4TioE 5EqPPFVzEuMLL9ZnwNjan/wx81zehTgtKE/Bu7t9Yh7oqq5Y6jiSquskVRvd9GwWATZG Bgauhm5JqJrKQsllVky1EcIqNhGyZAbDAWX/+cyob8r2DDqeUh2dYKjQafAkGxu6jHkh OYsu2VrSk888vqezYG9Nh2TkY62b+5G6RyWJMDUnV3/LWeqlUM+MJ1A7S2qhuyccNdqI kp8EWSSzJ15PJbqmumSLquSPTZH2D2s1ash+fKfDOdjzV/GtCdnf7EoHImXiDi6Q00E+ IKkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712075462; x=1712680262; h=content-transfer-encoding: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=LYZ/HV8FfMSNOILFIyzwQtDavvt6XCAuN5X6pv4vjAg=; b=MV1CgcAqGyUuVEGyx5I4EBJJNYemTxJTTiaMyqhHKBrwkjs3WCZo5l0VxWjZtN19b3 kFXL34BE8LGyUpFwH7sNgpruXzs2QGMRm2FKZ1V4E44USE7HYRcEl5VKphxd8Wqxrl+t o5Shnyexury/Al7mh6pXzYpMRAIX3XKnztTbLdVfOiAgdtlF3xPMVLkg6uOYUvYGnM5J QN7FOE7YrPDBoc5ce45kb6V8i7/2qwn4m/xV1L76SubqtQXEu6GYV3RAmbts53BJUi60 TyQpcsCBAitpfOZsK4k/0dxZUplON+AnM79Mp3ldgArHFdIiviPcPIAq8beLCZqHqtMq PAvA== X-Gm-Message-State: AOJu0YwgxpBDojm802rLo1Q2YkpDQ+OYiindDnASFiYTjpvzjU9S7vKe wzb2wHmPdrr78ktYNVeUhAMmC9zhIvID4eTHtMIBwqcq0pYBTFgGCOlDWOv8tcHnjkjdGbl1Lyc k X-Google-Smtp-Source: AGHT+IHr93BNHQyxklPU0Wo84C/+hqbb9XuxuMDRJSON3VMQqlHA3oLI11T9jVG5HiwdDrk2UEryDg== X-Received: by 2002:a05:6a00:1403:b0:6ea:d4ed:8d21 with SMTP id l3-20020a056a00140300b006ead4ed8d21mr12525942pfu.18.1712075462609; Tue, 02 Apr 2024 09:31:02 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id y7-20020aa793c7000000b006e6fd17069fsm9954857pff.37.2024.04.02.09.31.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 09:31:02 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH 2/4] doc: replace ifconfig and brctl usage in howto Date: Tue, 2 Apr 2024 09:29:34 -0700 Message-ID: <20240402163050.133923-3-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240402163050.133923-1-stephen@networkplumber.org> References: <20240402163050.133923-1-stephen@networkplumber.org> MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org The brctl command is deprecated and not supported on lastest distros. Ifconfig command is legacy and no longer maintained; replace it with ip commands in documentation. Signed-off-by: Stephen Hemminger --- doc/guides/howto/lm_bond_virtio_sriov.rst | 58 +++++++++++------------ doc/guides/howto/lm_virtio_vhost_user.rst | 2 +- 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/doc/guides/howto/lm_bond_virtio_sriov.rst b/doc/guides/howto/lm_bond_virtio_sriov.rst index 60b4462c2c..751b1de90b 100644 --- a/doc/guides/howto/lm_bond_virtio_sriov.rst +++ b/doc/guides/howto/lm_bond_virtio_sriov.rst @@ -445,21 +445,21 @@ Setup bridge on host_server_1 # ens3f0 is the Niantic NIC # ens6f0 is the Fortville NIC - ifconfig ens3f0 down - ifconfig tap1 down - ifconfig ens6f0 down - ifconfig virbr0 down - - brctl show virbr0 - brctl addif virbr0 ens3f0 - brctl addif virbr0 ens6f0 - brctl addif virbr0 tap1 - brctl show virbr0 - - ifconfig ens3f0 up - ifconfig tap1 up - ifconfig ens6f0 up - ifconfig virbr0 up + ip link set dev ens3f0 down + ip link set dev tap1 down + ip link set dev ens6f0 down + ip link set dev virbr0 down + + bridge link show dev virbr0 + ip link set dev ens3f0 master virbr0 + ip link set dev ens6f0 master virbr0 + ip link set dev tap1 master virbr0 + bridge link show dev virbr0 + + ip link set dev ens3f0 up + ip link set dev tap1 up + ip link set dev ens6f0 up + ip link set dev virbr0 up connect_to_qemu_mon_on_host.sh ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -548,21 +548,21 @@ Setup bridge on host_server_2 # ens4f0 is the Niantic NIC # ens5f0 is the Fortville NIC - ifconfig ens4f0 down - ifconfig tap1 down - ifconfig ens5f0 down - ifconfig virbr0 down + ip link set dev ens4f0 down + ip link set dev tap1 down + ip link set dev ens5f0 down + ip link set dev virbr0 down - brctl show virbr0 - brctl addif virbr0 ens4f0 - brctl addif virbr0 ens5f0 - brctl addif virbr0 tap1 - brctl show virbr0 + bridge link show dev virbr0 + ip link set dev ens4f0 master virbr0 + ip link set dev ens5f0 master virbr0 + ip link set dev tap1 master virbr0 + bridge link show dev virbr0 - ifconfig ens4f0 up - ifconfig tap1 up - ifconfig ens5f0 up - ifconfig virbr0 up + ip link set dev ens4f0 up + ip link set dev tap1 up + ip link set dev ens5f0 up + ip link set dev virbr0 up .. _lm_bond_virtio_sriov_vm_scripts: @@ -585,7 +585,7 @@ Set up DPDK in the Virtual Machine /root/dpdk/usertools/dpdk-hugepages.py --setup 2G /root/dpdk/usertools/dpdk-hugepages.py --show - ifconfig -a + ip link show /root/dpdk/usertools/dpdk-devbind.py --status rmmod virtio-pci ixgbevf diff --git a/doc/guides/howto/lm_virtio_vhost_user.rst b/doc/guides/howto/lm_virtio_vhost_user.rst index c5c48f10a9..2f9a93e849 100644 --- a/doc/guides/howto/lm_virtio_vhost_user.rst +++ b/doc/guides/howto/lm_virtio_vhost_user.rst @@ -415,7 +415,7 @@ setup_dpdk_virtio_in_vm.sh /root/dpdk/usertools/dpdk-hugepages.py --setup 2G /root/dpdk/usertools/dpdk-hugepages.py --show - ifconfig -a + ip -br link show /root/dpdk/usertools/dpdk-devbind.py --status rmmod virtio-pci From patchwork Tue Apr 2 16:29:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 139020 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 976F143DC3; Tue, 2 Apr 2024 18:31:26 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CDE804064A; Tue, 2 Apr 2024 18:31:06 +0200 (CEST) Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) by mails.dpdk.org (Postfix) with ESMTP id 42A58402E9 for ; Tue, 2 Apr 2024 18:31:04 +0200 (CEST) Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-6e74bd85f26so4429642b3a.1 for ; Tue, 02 Apr 2024 09:31:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1712075463; x=1712680263; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ZAcw7yJ5isR5vM4CCcMKqqtUGHHEB2aC7FnNMkgLMNE=; b=xsDWlZPvE/95gczFRrInDIHdFzad9Gh9Gy4d1dqbsBZfQOaa5Mw9yqgadBOKmvpXAr J4ojDOM4VMduvu0RNjRnmC6orH23sqWhmY8Ln7dcvIdAHOCU11dDCEZF5J8E6e/RRIBe ZeTHA4KMrjloUpq7/ZPZGkaRaf3HxLYVsdeoqWVOFhrefRdrpjLvGldmTRi8B39DUlVg KyQpahucPRn9m44kmrwi3bHvmSSa/9DNFwhe/VSgS9brBiDVBHde2DRz+6Owt8Lt4jzC CiSomPleapyu8deqxWlKNbc7785C9xLq7bV97lSDr6X+eSMoLT+3A2C1Jxkivs5jAv37 6E2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712075463; x=1712680263; h=content-transfer-encoding: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=ZAcw7yJ5isR5vM4CCcMKqqtUGHHEB2aC7FnNMkgLMNE=; b=jDPIRYD4iYIQVshkMCynVZh++u+dGFPK1wQ0eZtWi0AfD7vB97WpuPQRkZhSmqv7uz 9t702G52mQEYqeMaHLM47VUf6ga6oeXb/T4RneperYWcj3AwJbIdzdcarGZMCKEDRBqi Lkibqb6d7m1mBh61p+t/thQns+j3glW2my+HIO0nGe60tai+4mFk9/lp/NgvV3ZelKB7 LbZoeS06Ec1FsC5tImQv/pOoX7hZNeZRQWZvxKdr0fwyhBMnsholYm0WTu46emDn/dLS DDwB3wO4KlcodAj7kDNy+UbVEp7l/Fs4eCDo3ECqETi1jhLPidbqxtoBQ2XAEROwdEFI a22g== X-Gm-Message-State: AOJu0Yzc+K2EyUz2QLRIPMol1N2aGefVSJlkqRV2bE35wjhCu6Zl4bi+ JQZDy+X5DX9YhDkK6CRaeqOD/XKnAz1GsV9sGPQwnKNzbE9QV2iLEPJ9qJ4oal+Di8AfaMu6Qsz K X-Google-Smtp-Source: AGHT+IHqkuuGru4nEM+g4gAfFyieq5ACwkqKJ0MkqDQzhEOisXGP54Vm3DB1e5b62/FGdK0CSB2WzQ== X-Received: by 2002:a05:6a00:230c:b0:6ea:c501:b264 with SMTP id h12-20020a056a00230c00b006eac501b264mr13249866pfh.18.1712075463449; Tue, 02 Apr 2024 09:31:03 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id y7-20020aa793c7000000b006e6fd17069fsm9954857pff.37.2024.04.02.09.31.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 09:31:03 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Aman Singh , Yuying Zhang Subject: [PATCH 3/4] doc: replace ifconfig in testpmd doc Date: Tue, 2 Apr 2024 09:29:35 -0700 Message-ID: <20240402163050.133923-4-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240402163050.133923-1-stephen@networkplumber.org> References: <20240402163050.133923-1-stephen@networkplumber.org> MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org The ifconfig command is legacy and no longer maintained; replace it with equivalent ip command. Signed-off-by: Stephen Hemminger --- doc/guides/testpmd_app_ug/testpmd_funcs.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides/testpmd_app_ug/testpmd_funcs.rst index 2fbf9220d8..74754216f0 100644 --- a/doc/guides/testpmd_app_ug/testpmd_funcs.rst +++ b/doc/guides/testpmd_app_ug/testpmd_funcs.rst @@ -1381,7 +1381,8 @@ Set the allmulti mode for a port or for all ports:: testpmd> set allmulti (port_id|all) (on|off) -Same as the ifconfig (8) option. Controls how multicast packets are handled. +Same as the ``ip link set NETDEV allmulticast (on|off)`` command. +Controls how multicast packets are handled. set flow_ctrl rx ~~~~~~~~~~~~~~~~ From patchwork Tue Apr 2 16:29:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 139021 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D39F543DC3; Tue, 2 Apr 2024 18:31:33 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CCAAC4064E; Tue, 2 Apr 2024 18:31:08 +0200 (CEST) Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) by mails.dpdk.org (Postfix) with ESMTP id 66910402F2 for ; Tue, 2 Apr 2024 18:31:05 +0200 (CEST) Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-6eac64f2205so4466092b3a.2 for ; Tue, 02 Apr 2024 09:31:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1712075464; x=1712680264; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=l1YQR9vA1ExjgPXZx1u9QUYmj6l2lxm8f1tbQG9ecgQ=; b=1twO2n+Ob8hsdsqN4a8t48dBmFqWqdQRYg0qSX31cLi/983gESQjGvmqkpQjnpPs63 GREYwnVGNq3RjDseKKbk+2eSTkI91fVEqX7BdfdkM1qVyNdEZDl2AsJ8pBKqqTF7N/FQ EDQJ0d2sJ/CI1xyeWRVHIiCjl/puhJ7kkYw1ITIVuf+dXIrde5kIYSXqyDzP4g5vLhhE oyFBzRJKgT88OFvkLF6OaJ0poUiJUJmSkn6s+XQxG0Ov15cC1HeGk3/Y67aKUIuF6GYD tBWF1oU5S9X6C2vHgQT38qBjsnhNYgiJlqMAz8vrm1WqqNk2cwjeQgtCH/FKAXwI0X9Z zV3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712075464; x=1712680264; h=content-transfer-encoding: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=l1YQR9vA1ExjgPXZx1u9QUYmj6l2lxm8f1tbQG9ecgQ=; b=xL30QiK82J7x5ZdpkMIcJN/9eL/ejx2/5xj7DiYaMsr2yL3qk7xOixlEJT92pYjLt8 jwjceSJIV0vrC8wFbP0LPi4eYt9biBQJJKoKBLt5BJicyarZD4koS12A8aYurihkpG1t a2yEsHMtOX/IYCtyqDHbr8dA6GxeGRQGjdSMSxhK3G8Mlp7vgm0Oek5aPGMYSux4Cdko csk8Sg17KolWatjmzqjW1dqhKE6ohM9PJ2d0+cnQMTrWTY4Px4Ia4RWbpiKArdkD6U63 VW8mKMib4CMn3q41gtZRHmnEf8HP4J+OEzdlfaB3WUJItQ4kLd6kInkusCjyTxem3Hwy 9rMA== X-Gm-Message-State: AOJu0Yzx6vdJdIHFTPr8wUoahX8URmdbyaLRXM58PwuW3fW73ItGjFZe Bbmx0jlIu5XCh7LFF28NZpnBrgF9Nf6DHTF9ZsSJ5iqigwPOMfFFRtdu/fsAHJnAshm17VSlyIA C X-Google-Smtp-Source: AGHT+IHKwLGfOtalUQSbLdCxZUFY8i3HngqXnRBlg2WaIfW+iSYBx2tk9+b9GmxWF2ZKoAytAculSQ== X-Received: by 2002:a05:6a00:1992:b0:6ea:c2a2:5648 with SMTP id d18-20020a056a00199200b006eac2a25648mr13435077pfl.3.1712075464542; Tue, 02 Apr 2024 09:31:04 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id y7-20020aa793c7000000b006e6fd17069fsm9954857pff.37.2024.04.02.09.31.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 09:31:04 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Julien Aube , Rahul Lakkireddy , Yuying Zhang , Dariusz Sosnowski , Viacheslav Ovsiienko , Ori Kam , Suanming Mou , Matan Azrad , Devendra Singh Rawat , Alok Prasad Subject: [PATCH 4/4] doc: replace use of ifconfig in nics Date: Tue, 2 Apr 2024 09:29:36 -0700 Message-ID: <20240402163050.133923-5-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240402163050.133923-1-stephen@networkplumber.org> References: <20240402163050.133923-1-stephen@networkplumber.org> MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org The ifconfig command is BSD legacy and no longer maintained. Replace it with modern (20 year old) ip command. Signed-off-by: Stephen Hemminger --- doc/guides/nics/bnx2x.rst | 4 ++-- doc/guides/nics/cxgbe.rst | 13 ++++++------- doc/guides/nics/e1000em.rst | 2 +- doc/guides/nics/i40e.rst | 2 +- doc/guides/nics/mlx5.rst | 2 +- doc/guides/nics/qede.rst | 4 ++-- 6 files changed, 13 insertions(+), 14 deletions(-) diff --git a/doc/guides/nics/bnx2x.rst b/doc/guides/nics/bnx2x.rst index c24d32b9ab..ed56756a3f 100644 --- a/doc/guides/nics/bnx2x.rst +++ b/doc/guides/nics/bnx2x.rst @@ -163,8 +163,8 @@ This section provides instructions to configure SR-IOV with Linux OS. .. code-block:: console - ifconfig ens5f0 up - ifconfig ens5f1 up + ip link set dev ens5f0 up + ip link set dev ens5f1 up #. Create VF device(s): diff --git a/doc/guides/nics/cxgbe.rst b/doc/guides/nics/cxgbe.rst index 1f0b848ede..7cdaddeeb8 100644 --- a/doc/guides/nics/cxgbe.rst +++ b/doc/guides/nics/cxgbe.rst @@ -344,11 +344,11 @@ Unified Wire package for Linux operating system are as follows: modprobe cxgb4 -#. Use ifconfig to get the interface name assigned to Chelsio card: +#. Use ip to get the interface name assigned to Chelsio card: .. code-block:: console - ifconfig -a | grep "00:07:43" + ip -br link show | grep "00:07:43" Example output: @@ -502,11 +502,11 @@ virtual functions. Both the interfaces of a Chelsio 2-port adapter are bound to the same PCI bus address. -#. Use ifconfig to get the interface name assigned to Chelsio card: +#. Use ip to get the interface name assigned to Chelsio card: .. code-block:: console - ifconfig -a | grep "00:07:43" + ip -br link show | grep "00:07:43" Example output: @@ -519,8 +519,8 @@ virtual functions. .. code-block:: console - ifconfig p1p1 up - ifconfig p1p2 up + ip link set dev p1p1 up + ip link set dev p1p2 up #. Instantiate SR-IOV Virtual Functions. PF0..3 can be used for SR-IOV VFs. Multiple VFs can be instantiated on each of PF0..3. @@ -886,4 +886,3 @@ port. For this reason, one cannot allow/block a single port without allowing/blocking the other ports on the same device. - diff --git a/doc/guides/nics/e1000em.rst b/doc/guides/nics/e1000em.rst index 5e752a29e5..b4ba132144 100644 --- a/doc/guides/nics/e1000em.rst +++ b/doc/guides/nics/e1000em.rst @@ -125,7 +125,7 @@ The setup procedure is as follows: tapvm01: tap tapvm02: tap -#. Configure your TAP networking interfaces using ip/ifconfig tools. +#. Configure your TAP networking interfaces using iproute2 tools. #. Log in to the guest OS and check that the expected emulated devices exist: diff --git a/doc/guides/nics/i40e.rst b/doc/guides/nics/i40e.rst index ca6caa0cff..f80e173c44 100644 --- a/doc/guides/nics/i40e.rst +++ b/doc/guides/nics/i40e.rst @@ -326,7 +326,7 @@ SR-IOV: Prerequisites and sample Application Notes .. code-block:: console - ifconfig ens802f0 up + ip link set dev ens802f0 up #. Create VF device(s): diff --git a/doc/guides/nics/mlx5.rst b/doc/guides/nics/mlx5.rst index 9b2fe07fd3..1863c1ab7f 100644 --- a/doc/guides/nics/mlx5.rst +++ b/doc/guides/nics/mlx5.rst @@ -86,7 +86,7 @@ operations such as querying/updating the MTU and flow control parameters. This capability allows the PMD to coexist with kernel network interfaces which remain functional, although they stop receiving unicast packets as long as they share the same MAC address. -This means legacy linux control tools (for example: ethtool, ifconfig and +This means legacy linux control tools (for example: ethtool, iproute and more) can operate on the same network interfaces that owned by the DPDK application. diff --git a/doc/guides/nics/qede.rst b/doc/guides/nics/qede.rst index 38d5cbb1f3..9f65470179 100644 --- a/doc/guides/nics/qede.rst +++ b/doc/guides/nics/qede.rst @@ -226,8 +226,8 @@ This section provides instructions to configure SR-IOV with Linux OS. .. code-block:: console - ifconfig ens5f0 up - ifconfig ens5f1 up + ip link set dev ens5f0 up + ip link set dev ens5f1 up #. Create VF device(s):