From: Jesse Brandeburg <jesse.brandeburg@intel.com>
To: Or Gerlitz <gerlitz.or@gmail.com>
Cc: Linux Netdev List <netdev@vger.kernel.org>,
intel-wired-lan <intel-wired-lan@lists.osuosl.org>,
Jeff Kirsher <jeffrey.t.kirsher@intel.com>,
Saeed Mahameed <saeedm@mellanox.com>
Subject: Re: [RFC PATCH net-next v1 00/14] rename and shrink i40evf
Date: Fri, 14 Sep 2018 12:17:27 -0700 [thread overview]
Message-ID: <20180914121727.00003913@intel.com> (raw)
In-Reply-To: <CAJ3xEMj3OXwz=A5+5JQ0mXoq2OU3N7DP-TpJVMtdTWXZw5tQ9w@mail.gmail.com>
On Fri, 14 Sep 2018 12:10:45 +0300 Or wrote:
> On Fri, Sep 14, 2018 at 1:31 AM, Jesse Brandeburg
> <jesse.brandeburg@intel.com> wrote:
> on what HW ring format do you standardize? do i40e/Fortville and
> ice/what's-the-intel-code-name? HWs can/use the same posting/completion
> descriptor?
The initial ring format is the same as used for XL710/X722 devices, and
planned be supported for the Intel Ethernet E800 series (ice driver) and
future VF devices using SR-IOV.
> > This solves 2 issues we saw coming or were already present, the
> > first was constant code duplication happening with i40e/i40evf,
> > when much of the duplicate code in the i40evf was not used or was
> > not needed.
>
> could you spare few words on the origin/nature of these duplicates? were them
> just developer C&P mistakes for functionality which is irrelevant for
> a VF? like what?
> if not, what was there?
In particular, some of the code was not used at all, but was not caught
by any automation because it was in a header file and included into
multiple file scopes. Other big chunk of the duplicate code was for
the PF's usage of the communication channel to firmware, which for some
reason was left in the VF driver code (probably just to avoid changing
the file) - but the VF driver doesn't communicate to firmware, just to
the PF.
> > The second was to remove the future confusion of why
> > future VF devices that were not considered "40GbE" only devices
> > were supported by i40evf.
>
> can elaborate further?
The name i40evf was generating customer questions, and was confusing
when you add in multiple generations of PF hardware that are no longer
using the i40e driver.
> > The thought is that iavf will be the virtual function driver for
> > all future devices, so it should have a "generic" name to propery
> > represent that it is the VF driver for multiple generations of
> > devices.
>
> for that end, as I think was explained @ the netdev Tokyo AVF session,
> you would need a mechanism for feature negotiation, is it here or coming up?
The driver already has it (a feature negotitiation), please see the
function called iavf_send_vf_config_msg, and follow from where it is
called. Basically the VF driver negotiates with the PF for what it can
do, and the PF guarantees that the base set of features will always
work, with optional advanced features which the code may/may-not have
in the future.
> > 41 files changed, 3436 insertions(+), 7581 deletions(-)
>
> code diet is cool!
Thanks! ~4000 lines less made me very happy too.
next prev parent reply other threads:[~2018-09-15 0:33 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-13 22:31 [RFC PATCH net-next v1 00/14] rename and shrink i40evf Jesse Brandeburg
2018-09-13 22:31 ` [RFC PATCH net-next v1 02/14] iavf: diet and reformat Jesse Brandeburg
2018-09-13 22:31 ` [RFC PATCH net-next v1 03/14] iavf: rename functions and structs to new name Jesse Brandeburg
2018-09-13 22:31 ` [RFC PATCH net-next v1 04/14] iavf: rename i40e_status to iavf_status Jesse Brandeburg
2018-09-13 22:31 ` [RFC PATCH net-next v1 05/14] iavf: move i40evf files to new name Jesse Brandeburg
2018-09-13 22:31 ` [RFC PATCH net-next v1 06/14] iavf: remove references to old names Jesse Brandeburg
2018-09-13 22:31 ` [RFC PATCH net-next v1 07/14] iavf: rename device ID defines Jesse Brandeburg
2018-09-13 22:31 ` [RFC PATCH net-next v1 08/14] iavf: rename I40E_ADMINQ_DESC Jesse Brandeburg
2018-09-13 22:31 ` [RFC PATCH net-next v1 09/14] iavf: rename i40e_hw to iavf_hw Jesse Brandeburg
2018-09-13 22:31 ` [RFC PATCH net-next v1 10/14] iavf: replace i40e_debug with iavf version Jesse Brandeburg
2018-09-13 22:31 ` [RFC PATCH net-next v1 11/14] iavf: tracing infrastructure rename Jesse Brandeburg
2018-09-13 22:31 ` [RFC PATCH net-next v1 12/14] iavf: rename most of i40e strings Jesse Brandeburg
2018-09-13 22:31 ` [RFC PATCH net-next v1 13/14] iavf: finish renaming files to iavf Jesse Brandeburg
2018-09-13 22:31 ` [RFC PATCH net-next v1 14/14] intel-ethernet: use correct module license Jesse Brandeburg
2018-09-13 22:43 ` [RFC PATCH net-next v1 00/14] rename and shrink i40evf David Miller
2018-09-14 4:39 ` Benjamin Poirier
2018-09-14 18:55 ` Jesse Brandeburg
2018-09-14 9:10 ` Or Gerlitz
2018-09-14 19:17 ` Jesse Brandeburg [this message]
2018-09-21 13:51 ` Or Gerlitz
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=20180914121727.00003913@intel.com \
--to=jesse.brandeburg@intel.com \
--cc=gerlitz.or@gmail.com \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=jeffrey.t.kirsher@intel.com \
--cc=netdev@vger.kernel.org \
--cc=saeedm@mellanox.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).