netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v10 0/6] add sriov support for wangxun NICs
@ 2025-04-08  9:15 Mengyuan Lou
  2025-04-10  2:30 ` Jakub Kicinski
  0 siblings, 1 reply; 3+ messages in thread
From: Mengyuan Lou @ 2025-04-08  9:15 UTC (permalink / raw)
  To: netdev; +Cc: kuba, horms, jiawenwu, duanqiangwen, linglingzhang, Mengyuan Lou

v10:
- Rename the function name for handling ngbe interrupts to make it more readable.
v9: https://lore.kernel.org/netdev/203E2DE385ACD88C+20250319073356.55085-1-mengyuanlou@net-swift.com/
- Using FIELD_{GET,PREP} macros makes the code more readable.
- Add support for the new mac_type aml in the configuration flow.
v8: https://lore.kernel.org/netdev/20250309154252.79234-1-mengyuanlou@net-swift.com/
- Request a separate processing function when ngbe num_vfs is equal to 7.
- Add the comment explains why pf needs to reuse interrupt 0 when the ngbe
num_vfs equals 7.
- Remove some useless api version checks because vf will not send commands
higher than its own api version.
- Fix some code syntax and logic errors.
v7: https://lore.kernel.org/netdev/20250206103750.36064-1-mengyuanlou@net-swift.com/
- Use pci_sriov_set_totalvfs instead of checking the limit manually.
v6: https://lore.kernel.org/netdev/20250110102705.21846-1-mengyuanlou@net-swift.com/
- Remove devlink allocation and PF/VF devlink port creation in these patches.
v5: https://lore.kernel.org/netdev/598334BC407FB6F6+20240804124841.71177-1-mengyuanlou@net-swift.com/
- Add devlink allocation which will be used to add uAPI.
- Remove unused EXPORT_SYMBOL.
- Unify some functions return styles in patch 1/4.
- Make the code line less than 80 columns.
v4: https://lore.kernel.org/netdev/3601E5DE87D2BC4F+20240604155850.51983-1-mengyuanlou@net-swift.com/
- Move wx_ping_vf to patch 6.
- Modify return section format in Kernel docs.
v3: https://lore.kernel.org/netdev/587FAB7876D85676+20240415110225.75132-1-mengyuanlou@net-swift.com/
- Do not accept any new implementations of the old SR-IOV API.
- So remove ndo_vf_xxx in these patches. Switch mode ops will be added
- in vf driver which will be submitted later.
v2: https://lore.kernel.org/netdev/EF19E603F7CCA7B9+20240403092714.3027-1-mengyuanlou@net-swift.com/
- Fix some used uninitialised.
- Use poll + yield with delay instead of busy poll of 10 times in mbx_lock obtain.
- Split msg_task and flow into separate patches.
v1: https://lore.kernel.org/netdev/DA3033FE3CCBBB84+20240307095755.7130-1-mengyuanlou@net-swift.com/

Mengyuan Lou (6):
  net: libwx: Add mailbox api for wangxun pf drivers
  net: libwx: Add sriov api for wangxun nics
  net: libwx: Redesign flow when sriov is enabled
  net: libwx: Add msg task func
  net: ngbe: add sriov function support
  net: txgbe: add sriov function support

 drivers/net/ethernet/wangxun/libwx/Makefile   |   2 +-
 drivers/net/ethernet/wangxun/libwx/wx_hw.c    | 302 +++++-
 drivers/net/ethernet/wangxun/libwx/wx_hw.h    |   4 +
 drivers/net/ethernet/wangxun/libwx/wx_lib.c   | 128 ++-
 drivers/net/ethernet/wangxun/libwx/wx_mbx.c   | 176 ++++
 drivers/net/ethernet/wangxun/libwx/wx_mbx.h   |  77 ++
 drivers/net/ethernet/wangxun/libwx/wx_sriov.c | 909 ++++++++++++++++++
 drivers/net/ethernet/wangxun/libwx/wx_sriov.h |  18 +
 drivers/net/ethernet/wangxun/libwx/wx_type.h  |  93 +-
 drivers/net/ethernet/wangxun/ngbe/ngbe_main.c |  93 +-
 drivers/net/ethernet/wangxun/ngbe/ngbe_mdio.c |   5 +
 drivers/net/ethernet/wangxun/ngbe/ngbe_type.h |   3 +
 .../net/ethernet/wangxun/txgbe/txgbe_irq.c    |  21 +-
 .../net/ethernet/wangxun/txgbe/txgbe_main.c   |  27 +
 .../net/ethernet/wangxun/txgbe/txgbe_phy.c    |   6 +
 .../net/ethernet/wangxun/txgbe/txgbe_type.h   |   7 +-
 16 files changed, 1837 insertions(+), 34 deletions(-)
 create mode 100644 drivers/net/ethernet/wangxun/libwx/wx_mbx.c
 create mode 100644 drivers/net/ethernet/wangxun/libwx/wx_mbx.h
 create mode 100644 drivers/net/ethernet/wangxun/libwx/wx_sriov.c
 create mode 100644 drivers/net/ethernet/wangxun/libwx/wx_sriov.h

-- 
2.48.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH net-next v10 0/6] add sriov support for wangxun NICs
  2025-04-08  9:15 [PATCH net-next v10 0/6] add sriov support for wangxun NICs Mengyuan Lou
@ 2025-04-10  2:30 ` Jakub Kicinski
  2025-04-10  2:55   ` mengyuanlou
  0 siblings, 1 reply; 3+ messages in thread
From: Jakub Kicinski @ 2025-04-10  2:30 UTC (permalink / raw)
  To: Mengyuan Lou; +Cc: netdev, horms, jiawenwu, duanqiangwen, linglingzhang

On Tue,  8 Apr 2025 17:15:50 +0800 Mengyuan Lou wrote:
> add sriov support for wangxun NICs

In the future please make sure the patches are sent in reply to 
the cover letter. git send-email should use --thread IIRC.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH net-next v10 0/6] add sriov support for wangxun NICs
  2025-04-10  2:30 ` Jakub Kicinski
@ 2025-04-10  2:55   ` mengyuanlou
  0 siblings, 0 replies; 3+ messages in thread
From: mengyuanlou @ 2025-04-10  2:55 UTC (permalink / raw)
  To: Jakub Kicinski; +Cc: netdev, horms, jiawenwu, duanqiangwen, linglingzhang



> 2025年4月10日 10:30,Jakub Kicinski <kuba@kernel.org> 写道:
> 
> On Tue,  8 Apr 2025 17:15:50 +0800 Mengyuan Lou wrote:
>> add sriov support for wangxun NICs
> 
> In the future please make sure the patches are sent in reply to 
> the cover letter. git send-email should use --thread IIRC.
> 
> 

I will check it.
Thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-04-10  2:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-08  9:15 [PATCH net-next v10 0/6] add sriov support for wangxun NICs Mengyuan Lou
2025-04-10  2:30 ` Jakub Kicinski
2025-04-10  2:55   ` mengyuanlou

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).