From: Edward Cree <ecree.xilinx@gmail.com>
To: Marcin Szycik <marcin.szycik@linux.intel.com>,
ecree@xilinx.com, netdev@vger.kernel.org,
linux-net-drivers@amd.com
Cc: davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com,
edumazet@google.com, corbet@lwn.net, linux-doc@vger.kernel.org,
jacob.e.keller@intel.com, jesse.brandeburg@intel.com,
michael.chan@broadcom.com, andy@greyhouse.net, saeed@kernel.org,
jiri@resnulli.us, snelson@pensando.io, simon.horman@corigine.com,
alexander.duyck@gmail.com, rdunlap@infradead.org
Subject: Re: [RFC PATCH v2 net-next] docs: net: add an explanation of VF (and other) Representors
Date: Fri, 19 Aug 2022 16:20:56 +0100 [thread overview]
Message-ID: <2578c4c4-03c0-1618-e53c-e271ca9c50dd@gmail.com> (raw)
In-Reply-To: <2c659f31-f2ac-b6a9-c509-5402f61afc78@linux.intel.com>
On 18/08/2022 10:56, Marcin Szycik wrote:
> On 15-Aug-22 16:22, ecree@xilinx.com wrote:
>
>> Just as each port of a Linux-controlled
>> +switch has a separate netdev, so each virtual function has one. When the system
>
> Maybe I'm misunderstanding something, but this sentence seems a bit confusing. Maybe:
> "Just as each port of a Linux-controlled switch has a separate netdev, each virtual
> function has one."?
Kuba wrote this paragraph and tbh it makes sense to me.
But how about "Just as each port of a Linux-controlled switch has a
separate netdev, so does each virtual function."?
>> +As a simple example, if ``eth0`` is the master PF's netdevice and ``eth1`` is a
>> +VF representor, the following rules::
>> +
>> + tc filter add dev eth1 parent ffff: protocol ipv4 flower \
>> + action mirred egress redirect dev eth0
>> + tc filter add dev eth0 parent ffff: protocol ipv4 flower \
>> + action mirred egress mirror dev eth1
>
> Perhaps eth0/eth1 names could be replaced with more meaningful names, as it's easy
> to confuse them now. How about examples from above (e.g. PF -> eth4, PR -> eth4pf1vf2rep)?
> Or just $PF_NETDEV, $PR_NETDEV.
Yeah, I can replace them with $VARIABLES.
-ed
next prev parent reply other threads:[~2022-08-19 15:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-15 14:22 [RFC PATCH v2 net-next] docs: net: add an explanation of VF (and other) Representors ecree
2022-08-18 9:56 ` Marcin Szycik
2022-08-19 15:20 ` Edward Cree [this message]
2022-08-18 11:20 ` Simon Horman
2022-08-18 15:07 ` Roi Dayan
2022-08-19 15:18 ` Edward Cree
2022-08-18 16:44 ` Parav Pandit
2022-08-19 16:36 ` Edward Cree
2022-08-19 18:59 ` Parav Pandit
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2578c4c4-03c0-1618-e53c-e271ca9c50dd@gmail.com \
--to=ecree.xilinx@gmail.com \
--cc=alexander.duyck@gmail.com \
--cc=andy@greyhouse.net \
--cc=corbet@lwn.net \
--cc=davem@davemloft.net \
--cc=ecree@xilinx.com \
--cc=edumazet@google.com \
--cc=jacob.e.keller@intel.com \
--cc=jesse.brandeburg@intel.com \
--cc=jiri@resnulli.us \
--cc=kuba@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-net-drivers@amd.com \
--cc=marcin.szycik@linux.intel.com \
--cc=michael.chan@broadcom.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=rdunlap@infradead.org \
--cc=saeed@kernel.org \
--cc=simon.horman@corigine.com \
--cc=snelson@pensando.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).