mbox series

[net-next,00/14] Wangxun 10 Gigabit Ethernet Driver

Message ID 20220511032659.641834-1-jiawenwu@trustnetic.com (mailing list archive)
Headers show
Series Wangxun 10 Gigabit Ethernet Driver | expand

Message

Jiawen Wu May 11, 2022, 3:26 a.m. UTC
This patch contains the support of linux base driver for wangxun 10
gigabit PCI express adapter which is named TXGBE.

This patch is meant to control the basic functionality of the PF driver,
and it would be incrementally enhanced with more features.

Jiawen Wu (14):
  net: txgbe: Add build support for txgbe ethernet driver
  net: txgbe: Add hardware initialization
  net: txgbe: Add operations to interact with firmware
  net: txgbe: Add PHY interface support
  net: txgbe: Add interrupt support
  net: txgbe: Support to receive and tranmit packets
  net: txgbe: Support flow control
  net: txgbe: Support flow director
  net: txgbe: Support PTP
  net: txgbe: Add ethtool support
  net: txgbe: Support PCIe recovery
  net: txgbe: Support power management
  net: txgbe: Support debug filesystem
  net: txgbe: Support sysfs file system

 .../device_drivers/ethernet/index.rst         |    1 +
 .../device_drivers/ethernet/wangxun/txgbe.rst |  238 +
 MAINTAINERS                                   |    7 +
 drivers/net/ethernet/Kconfig                  |    1 +
 drivers/net/ethernet/Makefile                 |    1 +
 drivers/net/ethernet/wangxun/Kconfig          |   41 +
 drivers/net/ethernet/wangxun/Makefile         |    6 +
 drivers/net/ethernet/wangxun/txgbe/Makefile   |   15 +
 drivers/net/ethernet/wangxun/txgbe/txgbe.h    |  829 ++
 .../ethernet/wangxun/txgbe/txgbe_debugfs.c    |  582 ++
 .../ethernet/wangxun/txgbe/txgbe_ethtool.c    | 3188 ++++++++
 drivers/net/ethernet/wangxun/txgbe/txgbe_hw.c | 5785 ++++++++++++++
 drivers/net/ethernet/wangxun/txgbe/txgbe_hw.h |  238 +
 .../net/ethernet/wangxun/txgbe/txgbe_lib.c    |  531 ++
 .../net/ethernet/wangxun/txgbe/txgbe_main.c   | 6748 +++++++++++++++++
 .../net/ethernet/wangxun/txgbe/txgbe_pcierr.c |  236 +
 .../net/ethernet/wangxun/txgbe/txgbe_pcierr.h |    8 +
 .../net/ethernet/wangxun/txgbe/txgbe_phy.c    |  439 ++
 .../net/ethernet/wangxun/txgbe/txgbe_phy.h    |   65 +
 .../net/ethernet/wangxun/txgbe/txgbe_ptp.c    |  840 ++
 .../net/ethernet/wangxun/txgbe/txgbe_sysfs.c  |  203 +
 .../net/ethernet/wangxun/txgbe/txgbe_type.h   | 2837 +++++++
 22 files changed, 22839 insertions(+)
 create mode 100644 Documentation/networking/device_drivers/ethernet/wangxun/txgbe.rst
 create mode 100644 drivers/net/ethernet/wangxun/Kconfig
 create mode 100644 drivers/net/ethernet/wangxun/Makefile
 create mode 100644 drivers/net/ethernet/wangxun/txgbe/Makefile
 create mode 100644 drivers/net/ethernet/wangxun/txgbe/txgbe.h
 create mode 100644 drivers/net/ethernet/wangxun/txgbe/txgbe_debugfs.c
 create mode 100644 drivers/net/ethernet/wangxun/txgbe/txgbe_ethtool.c
 create mode 100644 drivers/net/ethernet/wangxun/txgbe/txgbe_hw.c
 create mode 100644 drivers/net/ethernet/wangxun/txgbe/txgbe_hw.h
 create mode 100644 drivers/net/ethernet/wangxun/txgbe/txgbe_lib.c
 create mode 100644 drivers/net/ethernet/wangxun/txgbe/txgbe_main.c
 create mode 100644 drivers/net/ethernet/wangxun/txgbe/txgbe_pcierr.c
 create mode 100644 drivers/net/ethernet/wangxun/txgbe/txgbe_pcierr.h
 create mode 100644 drivers/net/ethernet/wangxun/txgbe/txgbe_phy.c
 create mode 100644 drivers/net/ethernet/wangxun/txgbe/txgbe_phy.h
 create mode 100644 drivers/net/ethernet/wangxun/txgbe/txgbe_ptp.c
 create mode 100644 drivers/net/ethernet/wangxun/txgbe/txgbe_sysfs.c
 create mode 100644 drivers/net/ethernet/wangxun/txgbe/txgbe_type.h

Comments

Jakub Kicinski May 12, 2022, 12:54 a.m. UTC | #1
On Wed, 11 May 2022 11:26:45 +0800 Jiawen Wu wrote:
>  22 files changed, 22839 insertions(+)

Cut it up more, please. Expecting folks to review 23kLoC in one sitting
is unrealistic. Upstream a minimal driver first then start adding
features.
Jakub Kicinski May 12, 2022, 3:57 p.m. UTC | #2
On Thu, 12 May 2022 17:43:39 +0800 Jiawen Wu wrote:
> On Thursday, May 12, 2022 8:54 AM, Jakub Kicinski wrote:
> > On Wed, 11 May 2022 11:26:45 +0800 Jiawen Wu wrote:  
> > >  22 files changed, 22839 insertions(+)  
> > 
> > Cut it up more, please. Expecting folks to review 23kLoC in one sitting is
> > unrealistic. Upstream a minimal driver first then start adding features.  
> 
> I learned that the number of patches should not exceed 15 at a time, refer
> to the guidance document.
> May I ask your advice that the limit of one patch and the total lines?

There is no strict limit, but the reality is that we have maybe 
5 people reviewing code upstream and hundreds of developers typing 
and sending changes. So the process needs to be skewed towards making
reviewer's life easier, reviewers are the bottleneck.

So there is no easy way here. Remove as much code as possible to still
have functional driver and cut it up. Looks like you can definitely
drop all patches starting from patch 7 to begin with. But patches 1-6
are still pretty huge.
Andrew Lunn May 12, 2022, 10:06 p.m. UTC | #3
On Thu, May 12, 2022 at 08:57:48AM -0700, Jakub Kicinski wrote:
> On Thu, 12 May 2022 17:43:39 +0800 Jiawen Wu wrote:
> > On Thursday, May 12, 2022 8:54 AM, Jakub Kicinski wrote:
> > > On Wed, 11 May 2022 11:26:45 +0800 Jiawen Wu wrote:  
> > > >  22 files changed, 22839 insertions(+)  
> > > 
> > > Cut it up more, please. Expecting folks to review 23kLoC in one sitting is
> > > unrealistic. Upstream a minimal driver first then start adding features.  
> > 
> > I learned that the number of patches should not exceed 15 at a time, refer
> > to the guidance document.
> > May I ask your advice that the limit of one patch and the total lines?
> 
> There is no strict limit, but the reality is that we have maybe 
> 5 people reviewing code upstream and hundreds of developers typing 
> and sending changes. So the process needs to be skewed towards making
> reviewer's life easier, reviewers are the bottleneck.
> 
> So there is no easy way here. Remove as much code as possible to still
> have functional driver and cut it up. Looks like you can definitely
> drop all patches starting from patch 7 to begin with. But patches 1-6
> are still pretty huge.

Hi Jiawen Wu

After a quick look at the patches, i'm guessing you are new to
submitting to mainline. So it might even make sense to just post patch
1. Please make it standalone, so most of the txgbe.rst can be removed,
since the driver with just patch 1 has none of the features discussed
in it. We can give you feedback which should help you learn the
process, and what we expect from mainline code. You can then rework
that patch and the rest of your driver from what you have learned,
making further patches easier and faster to review.

       Andrew
Andrew Lunn May 13, 2022, 12:27 p.m. UTC | #4
> By the way, I have some email related questions.
> I can't find the message of my reply in Patchwork. So I don't know whether
> my reply has been sent successfully.

Try looking at the other archive, like lore.

It could be you are obfuscating your email in MIME, so it got dropped.

> Also, I always receive two identical reply emails from other people at the
> same time. Are there settings I have forgotten?

That is probably one direct and one via the list. Take a look in the
email header to confirm this, look at the path the email took.

I actually find this useful, since i have all the list emails going
into a separate mailbox. Replies from the list can be missed, since
they are just one among 700 a day, but they do form a good local
archive. The direct emails land in my main mailbox, where they get
seen quickly.

     Andrew