[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240112090915.67f2417a@hermes.local>
Date: Fri, 12 Jan 2024 09:09:15 -0800
From: Stephen Hemminger <stephen@...workplumber.org>
To: Jiri Pirko <jiri@...nulli.us>
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH iproute2] man/tc-mirred: don't recommend modprobe
On Fri, 12 Jan 2024 13:44:47 +0100
Jiri Pirko <jiri@...nulli.us> wrote:
> Thu, Jan 11, 2024 at 08:34:44PM CET, stephen@...workplumber.org wrote:
> >Use ip link add instead of explicit modprobe.
> >Kernel will do correct module loading if necessary.
> >
> >Signed-off-by: Stephen Hemminger <stephen@...workplumber.org>
> >---
> > man/man8/tc-mirred.8 | 3 +--
> > 1 file changed, 1 insertion(+), 2 deletions(-)
> >
> >diff --git a/man/man8/tc-mirred.8 b/man/man8/tc-mirred.8
> >index 38833b452d92..2d9795b1b16f 100644
> >--- a/man/man8/tc-mirred.8
> >+++ b/man/man8/tc-mirred.8
> >@@ -84,8 +84,7 @@ interface, it is possible to send ingress traffic through an instance of
> >
> > .RS
> > .EX
> >-# modprobe ifb
> >-# ip link set ifb0 up
> >+# ip link add dev ifb0 type ifb
>
> RTNETLINK answers: File exists
>
> You can't add "ifb0" like this, it is created implicitly on module probe
> time. Pick a different name.
Right.
Looks like ifb is behaving differently than other devices.
For example, doing modprobe of dummy creates no device.
Powered by blists - more mailing lists