From: Jakub Kicinski <kuba@kernel.org>
To: Edward Cree <ecree.xilinx@gmail.com>
Cc: ecree@xilinx.com, davem@davemloft.net, pabeni@redhat.com,
linux-net-drivers@amd.com, netdev@vger.kernel.org
Subject: Re: [PATCH net-next v2 12/14] sfc: set EF100 VF MAC address through representor
Date: Thu, 28 Jul 2022 12:27:45 -0700 [thread overview]
Message-ID: <20220728122745.4cf0f860@kernel.org> (raw)
In-Reply-To: <bfc03b98-53ce-077a-4627-6c8d51a29e08@gmail.com>
On Thu, 28 Jul 2022 19:54:21 +0100 Edward Cree wrote:
> On 28/07/2022 19:32, Jakub Kicinski wrote:
> > How do you map reprs to VFs? The PCI devices of the VF may be on
> > a different system.
> That's what the client ID from patch #10 is for. We ask the FW for
> a handle to "caller's PCIe controller → caller's PF → VF number
> efv->idx", and that handle is what we store in efv->clid, and later
> pass to MC_CMD_SET_CLIENT_MAC_ADDRESSES in patch #12.
>
> The user determines which repr corresponds to which VF by looking in
> /sys/class/net/$VFREP/phys_port_name (e.g. "p0pf0vf0").
.. and that would also most likely be what the devlink port ID would be.
> > But reps are like switch ports in a switch ASIC, and the PCI
> > device is the other side of the virtual wire. You would not be
> > configuring the MAC address of a peer to peer link by setting
> > the local address.
> Indeed. I agree that .ndo_set_mac_address() is the wrong interface.
> But the interface I have in mind would be something like
> int (*ndo_set_partner_mac_address)(struct net_device *, void *);
> and would only be implemented by representor netdevs.
> Idk what the uAPI/UI for that would be; probably a new `ip link set`
> parameter.
Yup... If only you were there during the fight over this uAPI.
Now it's the devlink "port function" thing.
next prev parent reply other threads:[~2022-07-28 19:27 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-27 17:45 [PATCH net-next v2 00/14] sfc: VF representors for EF100 - RX side ecree
2022-07-27 17:45 ` [PATCH net-next v2 01/14] sfc: plumb ef100 representor stats ecree
2022-07-27 17:45 ` [PATCH net-next v2 02/14] sfc: ef100 representor RX NAPI poll ecree
2022-07-27 17:45 ` [PATCH net-next v2 03/14] sfc: ef100 representor RX top half ecree
2022-07-27 17:45 ` [PATCH net-next v2 04/14] sfc: determine wire m-port at EF100 PF probe time ecree
2022-07-27 17:45 ` [PATCH net-next v2 05/14] sfc: check ef100 RX packets are from the wire ecree
2022-07-27 17:45 ` [PATCH net-next v2 06/14] sfc: receive packets from EF100 VFs into representors ecree
2022-07-27 17:45 ` [PATCH net-next v2 07/14] sfc: insert default MAE rules to connect VFs to representors ecree
2022-07-27 17:45 ` [PATCH net-next v2 08/14] sfc: move table locking into filter_table_{probe,remove} methods ecree
2022-07-27 17:45 ` [PATCH net-next v2 09/14] sfc: use a dynamic m-port for representor RX and set it promisc ecree
2022-07-27 17:46 ` [PATCH net-next v2 10/14] sfc: look up VF's client ID when creating representor ecree
2022-07-27 17:46 ` [PATCH net-next v2 11/14] sfc: fetch existing assigned MAC address from FW when creating VF rep ecree
2022-07-27 17:46 ` [PATCH net-next v2 12/14] sfc: set EF100 VF MAC address through representor ecree
2022-07-28 3:10 ` Jakub Kicinski
2022-07-28 15:47 ` Edward Cree
2022-07-28 16:20 ` Jakub Kicinski
2022-07-28 18:12 ` Edward Cree
2022-07-28 18:32 ` Jakub Kicinski
2022-07-28 18:54 ` Edward Cree
2022-07-28 19:27 ` Jakub Kicinski [this message]
2022-07-28 20:23 ` Edward Cree
2022-07-29 1:45 ` Jakub Kicinski
2022-07-29 15:17 ` Edward Cree
2022-07-27 17:46 ` [PATCH net-next v2 13/14] sfc: get provisioned MAC address on EF100 VF probe ecree
2022-07-27 17:46 ` [PATCH net-next v2 14/14] sfc: implement ethtool get/set RX ring size for EF100 reps ecree
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=20220728122745.4cf0f860@kernel.org \
--to=kuba@kernel.org \
--cc=davem@davemloft.net \
--cc=ecree.xilinx@gmail.com \
--cc=ecree@xilinx.com \
--cc=linux-net-drivers@amd.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/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).